/Leetcode_Extract_Your_Code

This repository contains Python script to extract your submitted solutions on Leetcode

Primary LanguagePython

LeetCode Solutions Downloader

This Python script automates the process of logging in to LeetCode, retrieving solved problems, and saving their solution codes to local files.

Features

  • Automatically logs in to LeetCode using provided credentials.
  • Retrieves solved problems and their solution codes.
  • Saves solution codes to local files, organized by problem name.

Dependencies

  • Python 3.x
  • Selenium
  • BeautifulSoup

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/SnazzyNivesh522/Leetcode_Extract_Your_Code.git
  2. Install dependencies using pip:

    pip install -r requirements.txt

Usage

  1. Open script.py and provide your LeetCode username and password.

  2. Run the script:

    python script.py
  3. The script will log in to LeetCode, retrieve solved problems, and save their solution codes to local files in the leetcode_solutions directory.

Note

  • Make sure to review LeetCode's terms of service regarding automated scraping before using this script extensively.

License

This project is licensed under the MIT License - see the LICENSE file for details.