I am trying to make a timetable app for my university schedule since our school website does not provide a visualized timetable, rather it provides something like this:
description of registered courses
With this in mind, I have already started on this project and listed out the steps I need to take in order to complete it.
- Write a function that logs into the school website
- Write a function that saves the HTML file that includes the description of registered courses
- Write a function that scrapes the data from the HTML file and save the necessary data into fields such as COURSE_ID, COURSE_LOCATION, COURSE_STARTTIME, COURSE_ENDTIME, etc..
- Write a function that builds a visualized timetable with these fields as parameters
Of these four generalized steps, I have completed the third step, which is the data scraping portion. However, I have run into some problems and could not figure out how to do step 1. I was wondering if anyone could help me out here.
To provide more specific details, the school website link is https://ics.twu.ca/ICS/. From here, I do not know how to write a script that can request the URL and make a POST request with username and password.
I am writing this program in Python.