Skip to content

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.

Notifications You must be signed in to change notification settings

iamakkkhil/Codechef_Problem_Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Save any Problem Statement you like from Codeforces as a PDF.

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.

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. Valid Problem ID.
  2. Valid Difficulty Level.
  3. filename(without '.pdf'). The pdf will be created in the same folder.

PDF Output:

Imgur Imgur

Author

Akhil Bhalerao

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages