This python script will let you download Problem Statements from Codeforces and save them as a pdf file. The script uses Selenium Webdriver and fpdf library. Selenium is used with Chrome Webdriver, so having Chrome browser is a requirement.
-
Create a virtual environment and activate it.
-
Install the requirements
$ pip install -r requirements.txt
$ python Codeforces_problem_scrapper.py
The program will ask you to enter:
- Valid Problem ID.
- Valid Difficulty Level.
- filename(without '.pdf'). The pdf will be created in the same folder.