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.
pip install cf_util
pip install --upgrade cf_util
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
.
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:
-c
or--count
to specify the number of submissions to download.-m
or--min-rating
to specify the minimum problem rating for a problem to be downloaded, set by default to 0.-M
or--max-rating
to specify the maximum problem rating for a problem to be downloaded, set by default to 3500.-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.-o
or--combine-by-or
in order to allow the presence of only one tag for a problem submission to be downloaded.-l
or--list-only
in order to not download any submissions' code.
cf_util get-gym-list tourist
Returns a text file conatining links to all gyms that the user(s) participated in.