This is web scraping program to download all your Leetcode submission.
For more details, must read - https://medium.com/@dhananjaysonawane01/leetcode-downloader-9fefd1575c72 and follow the instructions.
How to use?
You just need 2 things.
-
Check your Chrome browser version and download suitable chromedriver.Just download this driver, do not run this file. Download from here(8-10 MB file) - https://chromedriver.chromium.org/downloads. Unzip the folder.
-
All above code files
Put chromedriver.exe(windows user) / chromedriver(linux or mac user), code files in SAME folder. You do not need to create any directory or file. Required directory/files will be created during runtime. Go through the comments in the codes.
Run linux_autorunner.sh or windows_autorunner.bat code file. Windows user might get warning pop-up, click on "More Info" and then "Run Anyway" button.
Follow the on screen instruction. You will be asked for your login credentials.
(You might face warning/error after running "leetcode_downloader.py" :
ERROR:ssl_client_socket_impl.cc(941)] handshake failed; returned -1, SSL error code 1, net_error -200
You can ignore this warning/error )
Since Leetcode website gets updated after few months of interval, you might face WebDriver Errors. Please do not hesitate to raise an issue with error screenshot. This will help me to update the codebase in efficient manner.
After successful execution :
Your submision link will be saved in "code_links" folder.
All your codes will be saved categotywise(i.e. accepted, wrong answer, TLE etc.) in "codes" folder. Filename is question name of Leetcode problem + your leetcode submission id.
Watch automation on browser, it is fun :)
Share this with your friends! Happy Leetcoding!!
Put a star, if you like this project.