This is a simple program that imports user's events from their college Blackboard Portal to Google Calendar App.
This reads the user's credentials from a text file, and logs in automatically from Blackboard, and uses the export ical function to download an iCal(.ics) file.
This file is then parsed and the useful data is converted to a CSV(.csv) file which is then added to your Google Calendar using the API.
-
Clone this repository
git clone https://github.com/c0mr4d3/Blackboard-to-GCal
-
Navigate to the project directory
cd Blackboard-to-GCal
-
Install the requirements
pip install -r requirements.txt
-
Create a text file, named
secret.txt
with your blackboard username and password in the formatusername:password
-
Activate Google calendar API from the link below
https://developers.google.com/calendar/quickstart/python -
Download the
credentials.json
from above link and place it in the working directory i.e.Blackboard-to-Gcal
-
Run the file
python ical.py
-
A browser popup will appear asking permissions for Google API to access your email, select the same email which you used for enabling Google API, and grant persmissions.
- Add the blackboard links to Google Calendar Event description
- Improve the wait times using Selenium functions instead of
time.wait
- Add the option to add reminders(notifications and emails) on events
- Cleanup and interface for above
Any pull requests are welcome.