Skip to main content

Codeforces-dl :inbox_tray:

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)

Metadata

Release files for codeforces-dl 1.0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codeforces-dl 1.0.0.1
File Size Uploaded Provenance Actions
codeforces-dl-1.0.0.1.tar.gz 2.5 kB Without provenance Details for codeforces-dl-1.0.0.1.tar.gz

Release files / codeforces-dl-1.0.0.1.tar.gz

Download URL codeforces-dl-1.0.0.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e61ad78e62f11165238f68cd48c6e07b69ff77ae74c06ddc909b05e7cfdd053a
BLAKE2b-256 checksum
How to use checksums
e40fd4ff2809d1396eb21d2d8879915b4a2ae7c3d6018eb912ef9bf39ba42c73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for codeforces-dl 1.0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page