Automatically sync upcoming Codeforces contests to your Google Calendar.
(This tool is in Testing mode, email me at (sjce.sughosh@gmail.com) to add your gmail for Test users)
- Fetches live contest data from the Codeforces API.
- Creates Google Calendar events with:
- Contest title
- Start and end time
- Reminder (15 min before)
- Works with Task Scheduler (Windows) for automation.
git clone https://github.com/YOUR_USERNAME/CodeForces2Calendar.git
cd CodeForces2Calendarpip install -r requirements.txt- Go to Google Cloud Console
- Create a new project (e.g., CodeForcesCalendar).
- Enable the Google Calendar API.
- Create OAuth 2.0 credentials → download the credentials.json file. (Rename the file to "credentials.json")
- Place it inside the project folder.
python main.pyOn the first run, your browser will open and ask you to log into Google. A token.json will be generated to store your login session.
- Open Task Scheduler → "Create Basic Task".
- Choose Daily.
- Action → "Start a Program".
- Program/script:
- Enter the path of python.exe
"C:\Users\<YOUR NAME>\AppData\Local\Programs\Python\Python313\python.exe"- Arguements:
- Enter the path of main.py
"C:\STORAGE\Code\CodeForces2Calendar\main.py"- credentials.json and token.json should NOT be shared.
- Each user must create their own credentials via Google Cloud.
- This repo includes a .gitignore to keep secrets safe.