Closed qasim closed 8 years ago
On another note: the second proposal will also allow for more abstraction within scrapers. The Exams
scraper can now hold methods that are common to the sub-scrapers.
Some other notable changes:
CourseFinder
has been renamed to Courses
to better reflect how we've been naming things for other scrapers.UTMShuttle
has been renamed to Shuttle
since it is currently the only shuttle service that UofT provides other than referencing the TTC. If UTSC decides to start a shuttle service, we can split this.Good to go from my end.
This is the PR that will reflect new format proposals from #39, along with a newer proposal for scraper organization for ones that require a different scraper for each campus.
Let's take Exams for an example. If a user calls
Exams.scrape()
, it should subsequently perform the following:UTSGExams.scrape()
UTMExams.scrape()
UTSCExams.scrape()
Of course, you can directly call the above APIs still. This just adds a convenient alias to scrape all of them with one call. All of these scrapers remain in the global namespace, so no changes with that.
Note: Only the README has changed so far; I will be reflecting changes to the actual codebase as well once all of the scrapers currently in development / almost complete are merged.