klintan / leetcode-anki

Anki cards generator for Leetcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leetcode Anki card generator

Summary

By running this script you'll be able to generate Anki cards with all the leetcode problems.

I personally use it to track my grinding progress.

ezgif-7-03b29041a91e

photo_2021-09-29_08-58-19 jpg 2 photo_2021-09-29_08-58-21 jpg 2 photo_2021-09-29_08-58-23 jpg 2

Installation

First initialize and activate python virtualenv somewhere

virtualenv -p python3 leetcode-anki
. leetcode-anki/bin/activate

Then initialize necessary environment variables. You can get the values directly from your browser

export LEETCODE_CSRF_TOKEN="xxx"
export LEETCODE_SESSION_ID="yyy"

And then run

make generate

You'll get leetcode.apkg file, which you can import directly to your anki app.

There also will be a cache directory created for the cached data about the problems. If you want to fetch more up to date information about the existing problems, delete this dir. Just keep in mind, it'll take a while to re-download the data about all the problems.

About

Anki cards generator for Leetcode


Languages

Language:Python 97.4%Language:Makefile 2.6%