This is a web scrapper made for the purpose of extracting your solved question from leetcode.
- Mozilla Firefox
- Setup geckodriver (file provided inside the repository)
-
Run this command inside the repo to Make geckodriver executable. Run this in terminal
chmod +x geckodriver -
Add the driver to your PATH so other tools can find it. Run this in terminal
export PATH=$PATH:/path-to-geckodriver-file/. -
- NodeJS
- Clone this github repository
- Run this command inside the cloned directory
npm i - Create a .env file and enter your leetcode credentials
email = 'your_email_here'
password = 'your_password_here'
- It uses selenium webdriver to automate the task of finding questions.
- Sorting them and finding solved ones.
- Extract links of such questions and store in array.
- Now loop in array and find submitted codes.
- Make a new directory codes/ and write all the solved question's solution there.
P.S : I know code quality can be improved. I will do that in next commits :p.
