Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 1.9 KB

README.md

File metadata and controls

73 lines (47 loc) · 1.9 KB

LeetCode Automation Bot

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.

Table of Contents

Introduction

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.

Features

  • 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.

Installation

Prerequisites

Ensure you have the following installed:

Steps

  1. Clone the repository:

    git clone https://github.com/rajat-ankel/leetcode-automation-bot.git
    cd leetcode-automation-bot
  2. Create and activate a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the dependencies:

    pip install -r requirements.txt

Usage

Submitting Solutions

To start the solution submission process, run:

python leetcoder.py