dragon.warrior's blog

By dragon.warrior, history, 7 years ago, In English

Hi Codeforces!

Downloading all your AC solutions is a cumbersome task. I have written a script in Python (uses Selenium 3.0.2) to automatically download all the AC solutions of a user.

Please find the source code on the following github repo — https://github.com/pamnaniarik/codeforces_ac

Some insights —

  1. You just need to provide the username to download the AC solutions. sudo python run.py username

  2. For downloading and installing Selenium, please refer to selenium docs.

  3. This script works only on chrome (or chromium), and Linux. Make sure that chromedriver is placed on the correct path, i.e. /usr/bin/chromedriver

  4. All the downloaded solutions are stored in a folder named /home/codeforces. If you want to change this, change the variable path in 'file.py'.

  5. Currently, file extensions for Python, C++, and Java are supported. More language support will be added later.

Please send me any queries or feedback related to this through inbox. :)

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

| Write comment?