Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

README.md

Outline

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:

Imgur

The program will ask you to enter:

  1. DRIVER PATH
  2. VALID Difficulty Range of PROBLEMS.
  3. Number of Questions to Scrape.

PDF Output:

Imgur GIF

Author

Akhil Bhalerao

Morty Proxy This is a proxified and sanitized view of the page, visit original site.