Skip to content

Automatically update the SAIG calendar based on our shared google calendar. ๐Ÿ“†

License

Notifications You must be signed in to change notification settings

stanfordaigroup/calendar-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Calendar Scraper

NOTE: Not meant for external use, but still open-source for those interested.

This script automatically updates the SAIG calendar based on our shared google calendar.

What this does:

  1. Sets up GitHub API authentication and fetches the latest calendar.json file from the SAIG website repo.
  2. Sets up Google Calendar API auth and fetches the latest calendar data.
  3. Formats latest calendar data to only what we need.
  4. Compare old and new data to see if changes exist.
  5. Use the GitHub API to update (push a commit) the calendar.json file if we find changes.
  6. Our netlify app hosting the website notices the new commit and automatically rebuilds the website with the new data.

The app is hosted on heroku, where we do a check every 10 min for changes to the calendar.


Cheers to automation! ๐ŸŽ‰

About

Automatically update the SAIG calendar based on our shared google calendar. ๐Ÿ“†

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published