Skip to content

Quick and dirty Python script to download submitted solutions from Leetcode

Notifications You must be signed in to change notification settings

bitnot/leetcode-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode-exporter

Quick and dirty Python script to download submitted solutions from LeetCode

Script extracts your solutions in batches of 20 throttled at 1 second and saves them into ./leetcode-solutions directory.

In order to authenticate the script, log into your account in browser, copy the value of cookie header from any request to leetcode.com/api and store it in cookies.txt in the same directory as export.py.

You will need Python 3 to run the script.

pip3 install -r requirements.txt
python3 ./export.py

Make sure to read LeetCode Terms of Service if you decide to publish your solutions.

Sample output directory structure:

About

Quick and dirty Python script to download submitted solutions from Leetcode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages