Skip to main content

Downloads any problem/problem set from any contest hosted in codeforces.com

Project description

https://travis-ci.org/shravan97/codeforces-dl.svg?branch=master Code Health

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

Description

Codeforces-dl lets you download specific problems/problem sets as PDFs from codeforces.com for offline practice

Inspired by topcoder-dl

Requirements

  • 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

Installation

From source :

git clone https://github.com/shravan97/codeforces-dl.git
cd codeforces-dl
python setup.py

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

python setup.py

Usage

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
                    saved
  -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)

Contributions

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

Contributors

License

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.

Source Distribution

codeforces-dl-1.0.0.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file codeforces-dl-1.0.0.1.tar.gz.

File metadata

File hashes

Hashes for codeforces-dl-1.0.0.1.tar.gz
Algorithm Hash digest
SHA256 e61ad78e62f11165238f68cd48c6e07b69ff77ae74c06ddc909b05e7cfdd053a
MD5 096b66826f69f650eaa78fbd7e911409
BLAKE2b-256 e40fd4ff2809d1396eb21d2d8879915b4a2ae7c3d6018eb912ef9bf39ba42c73

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page