Skip to main content

Downloads any problem/problem set from any contest hosted in

Project description Code Health

!!! Attention : Please install competitive-dl instead of this one . It has a lot more features than this one !!!


Codeforces-dl lets you download specific problems/problem sets as PDFs from for offline practice
Inspired by topcoder-dl


  • BeautifulSoup4
    • $ pip install beautifulsoup4 or
    • $ sudo apt-get install python-beautifulsoup4
  • pdfkit
    • $ sudo pip install pdfkit
  • wkhtmltopdf (This dependency has to be installed manually)
    • $ sudo apt-get install wkhtmltopdf


From source :

git clone
cd codeforces-dl

Using pip :

sudo pip install codeforces-dl

By downloading the Zip/Tar file

You can also download the zip/tar file from here and then unzip the contents to a folder and run



usage: codeforcesdl [-h] [-contest CONTEST] [-problem PROBLEM] [-lang LANG]
                       [-dir DIR] [-out OUT]

optional arguments:
  -h, --help        show this help message and exit
  -contest CONTEST  contest id (For eg. 681,439 ..etc)
  -problem PROBLEM  problem index (For eg. A,C ..etc)
  -lang LANG        printing language
  -dir DIR          path to the directory in which the output file has to be
  -out OUT          your desired name for output file

Sample Usage

codeforcesdl -contest 682 -problem A -dir Demo -out my_fav_problem.pdf
codeforcesdl -contest 678 -dir Demo -out problems.pdf

(Please check Demo folder for the sample documents)


Found something useful to contribute to this project ? Please feel free to give a pull request :smile:



GNU General Public License v3 (GPLv3)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for codeforces-dl, version
Filename, size File type Python version Upload date Hashes
Filename, size codeforces-dl- (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page