Skip to content

DavidNgugi/leetcode-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leetcode Calendar

A Google calendar schedule generator for Leetcode questions.

An example schedule on Google Calendar

Installation

Ensure you have Poetry installed running:

curl -sSL https://install.python-poetry.org | python3 -

Then install dependencies:

poetry install

Environment

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 as CALENDAR_CREDENTIALS_FILE.
  • You can rename your file if you so desire ¯_(ツ)_/¯

Running the app

--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

Future Plans

  1. Optimize scraping process for larger dataset
  2. Shuffle answers based on user preference
  3. Vary question time based on problem difficulty
  4. Avoid overlapping with other calendar events
  5. Scrape all questions from LeetCode instead of NeetCode
  6. Connect to personal calendar instead of having to create a new calendar
  7. Dockerize

Licencing

Licensed using the MIT Licence and therefore free for commercial purposes;

About

A calendar schedule generator for Leetcode questions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published