/leetcode-list-builder

Create a leetcode list of questions from an input file, e.g. a list of question urls

Primary LanguagePythonMIT LicenseMIT

leetcode-list-builder

Add a list of questions to a favourite list of yours

How to run

Get your leetcode session id

Initialize session id variable. You can get it directly from your browser (if you're using chrome, cookies can be found here chrome://settings/cookies/detail?site=leetcode.com)

Linux/Macos

export LEETCODE_SESSION_ID="yyy"

Windows

set LEETCODE_SESSION_ID="yyy"

Run it

Clone this repo. And go to the directory in command line window.

Then,

  python3 -m venv ./venv
  source venv/bin/activate
  pip install -r requirements.txt
  python build.py 

Extra tools

  • Chrome add-on copy-selected-links can let you select multiple leetcode links from a web page
  • leetcode-anki can generate Anki decks based on a leetcode list id

Credits