Parses code tasks from leetcode.com website and writes them in a .csv file
- Clone repo:
$ git clone <repo address>
and cd into directory
- optionally - initialize and start virtual environment with:
$ python3 -m venv env
$ source env/bin/activate
- Install dependencies:
$ pip install -r requirements.txt
$ python3 -m lc_parcer [-t, --test] [-d, --debug] [-l, --log] [-p, pages]
- -t, --test: run tests
- -d, --debug: set logging to debug (default logging level - info)
- -l, --log: write logs into file. Usage: -l mylogs.log. If not set, logs would go to stdout.
- -p, --pages: set max pages to parse from leetcode tasks. Usage: -p 8. By default, script downloads only first page.
Script will save parsed data in .csv file (by default called 'tasks.csv') and place it into project directory.