Use this tool to download your solutions from LeetCode.com to your local machine. The tool will go through your account and download all the solutions you have submitted so far. It also takes the questions from the website and saves them in a folder with the same name as the question. The tool will also create a README.md
file for each question and add the question description to it.
- Support both O-Auth and User-Pass login system for LeetCode.
- Let's you login to your LeetCode account. No need to worry about your password being stored anywhere.
- Saves all your solutions to your local machine.
- Each solution is saved in a separate file with the same name as the question, inside a folder with the same name as the question.
- You can specify the path to the folder where you want to save your solutions.
- The script will also create a
README.md
file for each question and add the question description to it. - The newly made solution files will be added to your local git repository and committed.
- The changes will be pushed and uploaded to your GitHub repository.
- [IMPORTANT] Pre-Configure GitHub account on your computer.
- Fork this repository.
- Clone the forked repoistory anywhere on your computer.
- Run GitCode.py
- [IMPORTANT] Pre-Configure GitHub account on your computer.
- Clone your
destination repository
anywhere on your computer. - Copy GitCode.py to the repository where you want to save your solutions.
- Run GitCode.py