A Google calendar schedule generator for Leetcode questions.
Ensure you have Poetry
installed running:
curl -sSL https://install.python-poetry.org | python3 -
Then install dependencies:
poetry install
Note: Link to Guide to setting up Google Calendar API on Google Cloud Console
Setup your environment
and add CALENDAR_ID
from Google Calendar
cp .env.example .env
- Once you create a key, copy the JSON file you downloaded to
src/data
directory and set the filename in your.env
asCALENDAR_CREDENTIALS_FILE
. - You can rename your file if you so desire ¯_(ツ)_/¯
--dry
option ensures you don't hit the network
--verbose
option enables printing of logs on the cli
Scrape NeetCode for questions
python3 src/main.py scrape --dry --verbose
Schedule your calendar in dev
python3 src/main.py calendar schedule --dry --verbose
or use Makefile command found in Makefile
file
make help
- Optimize scraping process for larger dataset
- Shuffle answers based on user preference
- Vary question time based on problem difficulty
- Avoid overlapping with other calendar events
- Scrape all questions from LeetCode instead of NeetCode
- Connect to personal calendar instead of having to create a new calendar
- Dockerize
Licensed using the MIT Licence and therefore free for commercial purposes;