Amazing-Python-Scripts
Save any number of Problem Statement you like from Codeforces as a PDF.
This python script will let you download any number of 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.
Setting up:
-
Create a virtual environment and activate it.
-
Install the requirements
$ pip install -r requirements.txt
Running the script:
$ python Codeforces_Problem_Scrapper.py
Terminal Screenshot:
The program will ask you to enter:
- DRIVER PATH
- VALID Difficulty Range of PROBLEMS.
- Number of Questions to Scrape.
PDF Output: