Skip to content

A program to download leetcode solutions. Automatically generates a repository with timestamped commits

Notifications You must be signed in to change notification settings

brvv/leetcode-downloader

Repository files navigation

leetcode downloader

A program to download leetcode solutions. Automatically generates a repository with timestamped commits

How to use:

Dependencies

Run

pipenv install

Alternatively

pip install requests GitPython python-dotenv

Cookie String

You have to add your cookie string to .env

To find your cookie string, go to leetcode.com and log in.

Then, you can go to https://leetcode.com/api/submissions/?offset=0&lastkey=
When you are on a page with the response, go to the network part of your browser console, and locate the cookie in the request headers

the cookie string should start with something like csrftoken=

copy the entire cookie and paste it into .env

.env should look something like this:

COOKIE_STRING=csrftoken=SOMERANDOMSTRING
...

Running the program

After installing the dependencies and adding your cookie string to settings.py, run

pipenv run python main.py

or

python main.py

About

A program to download leetcode solutions. Automatically generates a repository with timestamped commits

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy