Skip to main content

A python tool to help install accepted submission from codeforces.com.

Project description

cf_util

cf_util is a simple Python-based command line script that allows the user to get information about submissions for a specific user from the codeforces website easily.

Usage

Install using
pip install cf_util
Update using
pip install --upgrade cf_util
Contests Downloader
cf_util contests-downloader tourist

Downloads all in-contest accepted submissions for the specified user(s) in order from newest to oldest.

Can use the optional argument -c or --count to specify how many contests to download, e.g, cf_util contests-downloader tourist -c 5.

Problems Downloader
cf_util problems-downloader tourist

Downloads all accepted submissions for the specified user(s) in order from newest to oldest.

Can use the following optional arguments:

  1. -c or --count to specify the number of submissions to download.
  2. -m or --min-rating to specify the minimum problem rating for a problem to be downloaded, set by default to 0.
  3. -M or --max-rating to specify the maximum problem rating for a problem to be downloaded, set by default to 3500.
  4. -t or --tags to specify the allowed problem tags. Tags must be written in the same way they are written on the codeforces website, tags with multiple words must be separated by - instead of spaces. Note that by default if you specify multiple tags then they must all be present in a problem.
  5. -o or --combine-by-or in order to allow the presence of only one tag for a problem submission to be downloaded.
  6. -l or --list-only in order to not download any submissions' code.
Get Gym List
cf_util get-gym-list tourist

Returns a text file conatining links to all gyms that the user(s) participated in.

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

cf_util-1.2.1.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

cf_util-1.2.1-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

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