Skip to content

Scrapes the timetable from PoliMi online services and converts it to well-known iCal format. PoliMi's website is messy and this code is messier, your mileage may vary.

License

Notifications You must be signed in to change notification settings

depau/PoliScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PoliMi Timetable Scraper

Scrapes the timetable from PoliMi online services and converts it to well-known iCal format

Screenshot

Usage

$ python2 src/scraper.py

Use the built-in web browser to navigate to the timetable. Cookies are stored in ~/.config/poliscraper/cookies.sqlite The home button will bring you to your custom lesson schedule based on your study plan.

The timetable generated from a degree program can be used as well.

As soon as the timetable is loaded, the Scrape timetable button on the top bar will become clickable. Click it, pick a path and a file name, save your iCal and import it into your favourite calendar application ;)

Importing into Google Calendar

  1. Go to calendar.google.com.
  2. Click on the cog on the top right, select Settings, then go to Calendars.
  3. (Optional) Create a new calendar. This is suggested as the generated calendar may contain errors; importing it to a separate calendar allows you to simply delete it if you need to.
  4. Go back to Settings > Calendar, then press Import calendar.
  5. Upload the generated iCal file. Make sure you import it to the right calendar by picking it from the Calendar dropdown menu.

Troubleshooting

The "Scrape timetable" button is not clickable

Make sure you're viewing the textual timetable page. The synoptic timetable doesn't have enough information to be scraped

I'm getting an error message

Before complaining on the issue tracker, make sure you're running the latest revision from GitHub.

If you're running the latest revision and the issue is still there, enable debug flags, copy the command line output post it in new issue on GitHub.

$ python2 src/scraper.py --debug-divs --debug-regex --debug-timetable

Make sure you remove any personal information, and that you use an external pastebin service for the program output. Keep your shitposting on Facebook, not on GitHub. Thank you <3

About

Scrapes the timetable from PoliMi online services and converts it to well-known iCal format. PoliMi's website is messy and this code is messier, your mileage may vary.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages