A Python Script to automatically create VIT Chennai courses timetable in Google Calendar using Google Calendar API.
- Create a Google account (or use an existing one).
- Go to the Google Cloud Console, create a new project.
- Enable the Google Calendar API for that project.
- Create OAuth 2.0 credentials:
- Go to APIs & Services > Credentials
- Click Create Credentials > OAuth client ID
- Choose Desktop app
- Download the
credentials.jsonfile
- Add your Gmail ID in users:
- Go to APIs & Services > OAuth consent screen
- Click Audience
- Add your Gmail ID in + Add users under Test users
- Place the downloaded
credentials.jsonin the same folder as this script - Install the following packages:
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib python-dotenv - Run the script:
python main.py - A browser window will open - sign in to your Google account and authorize access
- Enter your course details when prompted