Downloads Contest problems and tutorials
The scraper does the following:
- Makes a Problem Set folder
- Requests for the range of contest IDs the user wants to download
- Maintains a text file which tracks whether the requested contest has already been downloaded
- Creates separate folders for each valid contest and downloads all the problems and tutorials as PDFs. Note that some Codeforces contests don't have tutorials
Run by executing runner.py It is a Python3 file
Requirements: Python3; Python libraries: bs4, requests, pdfkit, lxml; Application: wkhtmltopdf
Terminal commands for requirement installation in Ubuntu:
sudo pip3 install bs4
sudo pip3 install requests
sudo pip3 install lxml
sudo pip3 install pdfkit
sudo apt-get install wkhtmltopdf
Created by Shivansh Shukla