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.
- Create a virtual environment
python3 -m venv env
- Activate virtual environment
source env/bin/activate
- Install requirements
python3 -m pip install requirements.txt
- Run Project. There are 2 modes to run this project in. For more info on args formatting -
python3 run.py -h
- Scrape Leetcode and generate a JSON -
python3 run.py
- Convert JSON from 1. into graph representation -
python3 run.py -m 2
- Scrape Leetcode and generate a JSON -
- To deactivate venv, enter
deactivate
- Get related questions and map those respectively in graph links
- Get question descriptions to add to each node data
- ... (Feel free to add on features!)