Skip to content

Scrapes information on algorithm questions from LeetCode and outputs data to a JSON file. Project built on Selenium.

License

Notifications You must be signed in to change notification settings

thaddeuslzy/leetcode-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode-scraper

Scrapes information on algorithm questions from LeetCode and outputs data to a JSON file. Also converts outputted JSON file to graph representation format. Project built on Selenium.

Getting Started

  1. Create a virtual environment python3 -m venv env
  2. Activate virtual environment source env/bin/activate
  3. Install requirements python3 -m pip install requirements.txt
  4. Run Project. There are 2 modes to run this project in. For more info on args formatting - python3 run.py -h
    1. Scrape Leetcode and generate a JSON - python3 run.py
    2. Convert JSON from 1. into graph representation - python3 run.py -m 2
  5. To deactivate venv, enter deactivate

TODO

  1. Get related questions and map those respectively in graph links
  2. Get question descriptions to add to each node data
  3. ... (Feel free to add on features!)

About

Scrapes information on algorithm questions from LeetCode and outputs data to a JSON file. Project built on Selenium.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages