DEMO
leetcoder.mp4
This project automates the process of submitting solutions to LeetCode problems. It uses Selenium WebDriver to interact with LeetCode's website and submit solutions from JSON files.
The LeetCode Automation Bot helps in automating the submission of solutions to LeetCode problems. It supports the following:
- Loading solutions from JSON files.
- Automatically submitting solutions and checking for successful submissions.
- Storing lists of solved and not solved problems.
- Manual Login: Allows users to manually log in to LeetCode.
- Automated Submission: Automatically submits solutions and checks for "Accepted" results.
- Track Solved/Not Solved Problems: Maintains records of solved and not solved problems in separate JSON files.
- Scheduled Updates: (Optional) Can be integrated with scheduling libraries to run at specific intervals.
Ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/rajat-ankel/leetcode-automation-bot.git cd leetcode-automation-bot
-
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
To start the solution submission process, run:
python leetcoder.py