soon's blog

By soon, 10 years ago, In English

Hi there!

I would like to introduce wrapper library for Codeforces API written in Python 3. It helps you with collecting, analyzing and visualizing data.

Intro:

As a contest member you may want to increase your power by solving problems, but some of them are quite simple, and you want to skip them. Lets say, you want to practice only Div2-C problems. You could, of course, open Problemset, then press Ctrl+F and write C to highlight preferable problems. But this may take a long time (you should look through the page and open only unsolved Div2 problems. A little boring, neh?).
Another way is write a script for loading all problems then filter only unsolved Div2-C problems and sort by solved count. Sounds interesting, isn't it? There is an example of such script. All you need is run it and input your codeforces handle, and it will print ten first unsolved Div2-C problems. Pretty simple.

If you are a contest owner, you may want to improve your posts with contest results, like hack statistics from Hack me! (CF Round #262)

hacks

Or submission statistics:

submissions

All of this graphics drawn by great Plot.ly service, but you could, of course, export data to Excel or any other program (using appropriate python module). Script examples could be find on github

.

Sounds good! How can I take it?

First of all, you need Python 3. Note, this package is Python 3 only

There are several ways to get the package.

  1. easy_install
    You could use easy_install utility. Just run it like

    $ easy_install codeforces_api

    That's all!

  2. Clone from github repository

    $ git clone https://github.com/soon/CodeforcesAPI

    Then install using setuptools module:

    $ cd CodeforcesAPI
    $ python3 setup.py install
  3. Download Windows executable from pypi:

    The installer could be found here

I want to help you, what can I do?

You are always welcome to make pull requests on github. You could improve all that you see fit (write better examples, stronger tests, more powerful modules, etc.)

I found a bug! I have already call policy and insect killers, what's next?

Please, visit issue tracker and report this bug.

I still have some questions!

You could ask your questions here, or contact with me using PM or e-mail.

  • Vote: I like it
  • +9
  • Vote: I do not like it