Skip to content

A small project to web scrape the University of Otago's key dates page and convert them into Google Calendar events

Notifications You must be signed in to change notification settings

JamesRobionyRogers/Uni-KeyDates-to-Calendar

Repository files navigation

Contributors Forks Stargazers Issues MIT License


University of Otago Key Dates to Calendar

February 2023

Small project to learn a bit of web scraping, OAuth authentication and calling APIs in Python.


Overview

The problem I was having was that I didn't want to have to go through Otago's key dates page and manually add all the events I needed to keep track of. So I devised a Python script to do it for me.

Built With

File Tree

  • KeyDatesToGoogleCal.py - Main script to scrape the key dates page and add them to the user's Google Calendar
  • authenticateUser.py - Small script to authenticate the user with Google Calendar API
  • deleteAllCalendarEvents.py - Small script to delete all events from the user's Google Calendar (useful for testing)

  • Documentation.ipynb - A notebook to document the process of building the project

Running Locally

  1. Clone the repo using Git
gh repo clone JamesRobionyRogers/UniversityOfOtago-KeyDates-to-Calendar
  1. Install the required packages
pip install 
  1. Change the calendarId variable in KeyDatesToGoogleCal.py to your Google Calendar ID. You can find this by going to your Google Calendar settings and copying the Calendar ID.

  2. Run the script

python KeyDatesToGoogleCal.py
  1. Follow the prompts to authenticate the script with your Google account.

View Project

Further Improvement

Here are a couple of improvements I would like to make to this project in the future

  • Create improvements on the filter as there are still some irrelevant events being added to the calendar
    • Could be done through removing events that contain certain words from the already filtered events

About

A small project to web scrape the University of Otago's key dates page and convert them into Google Calendar events

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published