An easy method to download all the leetcode submissions.
Dependencies needed to be downloaded:
- Code in this repo (you can choose python file or the jupyter notebook. Both are the same.)
- Selenium (pip install selenium)
- Google Chrome browser
- Chrome Driver: Download the version that matches your chrome browser from here. Extract it into the same directory as the code.
Procedure:
- Install the depencies and run the python file or the cells in jupyter notebook
- You'll be prompted to enter your leetcode/google credentials to login. Enter and watch chrome being controlled by the automated test software.
- Note: Incase there's a captcha while logging in, please complete the captcha and press 'y' in the shell/notebook to continue.
This work is inspired by this repo.