- Works on new dynamic layout only.
- Only works on Windows. Do raise a PR if you can solve this problem for mac-os.
- Use Responsibly
- Last checked and working on 09-07-2024.
- Currently, No Data is being sent to anything external to your system.
Leetcoder is a tool designed to automate your Leetcode experience, making problem-solving and scraping more efficient than ever. Whether you're a competitive programmer or a coding enthusiast, this bot can help you bump up the resume stats.
Automatically login, solve and scrape Leetcode questions seamlessly. With its advanced automated capabilities, Leetcoder can solve up to 200 problems in just 60 minutes.
-
Leetcoder automates the process of solving Leetcode questions.
-
Leetcoder handles user authentication.
-
Leetcoder can scrape and organize your accepted solutions, making it easy to track your progress and maintain a personal archive of your coding accomplishments.
-
Leetcoder remembers the last problem it solved, so it can resume solving questions right from where you left off.
Leetcoder should be used responsibly and solely for educational purposes. This bot is not intended to be used for unethical purposes, such as solving or faking solved problems on Leetcode for the purpose of gaining unfair advantages. Always follow Leetcode's terms of service and community guidelines when using this tool.
-
Clone the Leetcoder repository.
git clone https://github.com/chanpreet3000/Leetcoder
-
Open Leetcoder in a code editor.
-
Inside the Editor's terminal run
yarn install
. -
Make a file
.env
inside of root's directory. -
Inside
.env
file copy and paste the text as it is.; Please change this for your convenience, will be only used to create google profile. USER_EMAIL=your_email_here ; Open Chrome, type chrome://version/ in url, replace the below string with `Executable Path` GOOGLE_CHROME_EXECUTABLE_PATH=C:/Program Files/Google/Chrome/Application/chrome.exe
-
To start the bot run
node index.js
in the terminal. -
Directories for all the data stored
- Scraped Data
./UserData/your_email/LeetcoderData/ScrapedSolutions
- Solver Data
./UserData/your_email/LeetcoderData/SolvedProblems.json
consists of array of solved problem names, so that the bot can resume where you left - Chrome Data:
./UserData/your_email/ProfileData
contains all the chrome data to make sure you don't get logged out
- Scraped Data
Leetcoder is designed for use on Windows operating systems. It utilizes specific functionalities that are not compatible with macOS. As such, it is not supported on macOS.
Please ensure you are using a Windows environment when using Leetcoder for the best experience.
If you'd like to contribute to the development of Leetcoder, we welcome your ideas, suggestions, and code contributions. Feel free to open issues and pull requests on our GitHub repository.
This project is licensed under the MIT License.