Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 2.09 KB

NERDS.md

File metadata and controls

34 lines (26 loc) · 2.09 KB

NERDS README for timetable-vcs

I guess you like this little script and want to learn a bit more about how it works.

If you've got your own GitHub account, I'd appreciate it if you gave me a star and a follow.

Recommended Reading

The Algorithm

The following is a summary describing the steps taken to make this thing work. Click on any to forward to the relevant line.

  1. Establish that the correct data is included in the table – prompt to change if not
  2. Parse the table HTML to get the session data – each containing one or multiple events.
  3. Remove the potentially trashy parts of the sessions.
  4. Convert sessions into individual events.
  5. Make a long string containing the events following the VCS specification.
  6. Download the string as a virtual file.

Further Developments

The following are ideas to further the development of this mini-project:

  • Online wrapper
    • Request, parses and downloads the VCS automatically
    • Prevents the user having to execute the script manually in DevTools
    • Would require username and password for authentication
  • Online service
    • User adds subscription to their calendar
    • Periodically syncronises every user's calendar subscription
    • Ensures that the timetable events are always up-to-date

Note that lboro may soon change their timetable, which would make this code fail. Just keep this in mind when making improvements.

Contributions

For improvements to the code, please submit a PR to this repository.