Skip to content

harsh-panchal-804/LeetCode-Submissions-Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Project Title

This python script downloads all of your accepted submissions and saves them in a folder called "correct_submissions" in the same directory as the script. All the submissions are saved as .txt files.

Demo

Watch the demonstration below:

Demo GIF

Installation

  1. Clone the repository:

    git clone https://github.com/harsh-panchal-804/LeetCode-Submissions-Downloader.git
  2. Run the project:

    python script.py
    

Usage

  1. Step 1: Get your LeetCode session cookie from the browser's dev tools.
  2. Step 2: Replace the session_cookies dictionary with your LeetCode session cookie.
  3. Step 3: Run the script.
  4. If you get an error like An error occurred: 403 Client Error: Forbidden for url: https://leetcode.com/api/submissions/?offset=580.Replace the offset variable with your last offset and run the script again. Continue this until you have downloaded all the submissions.

About

Downloads all your submitted code in .txt files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages