vampire_slayer's blog

By vampire_slayer, history, 8 years ago, In English

Codeforces Solutions Downloader

It is a tool built using Shell script and C to download any user's non-Gym accepted solutions on Codeforces. It has been built primarily for Linux.

Running the tool

Place 'run.sh', 'parser.c' and 'fix.c' in the directory where you intend to keep the downloaded solutions.

Run the following commands:

chmod +x run.sh (Makes the script executable)

./run.sh username (Runs the script, replace 'username' with the user's handle whose solutions you intend to download)

The downloaded solutions get saved in a Directory called 'Codes' inside the directory from where the script was executed. The solutions get saved in the format 'ContestId_ProblemID.extension'. For example, 776_D.cpp is a possible filename.

In order to use it with proxy, add this command to the beginning of 'run.sh': export http_proxy="http://username:password@host:port"

Here is the link to the tool: Codeforces Solutions Downloader

Feel free to report any bugs you may find.

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

| Write comment?
»
8 years ago, # |
  Vote: I like it +2 Vote: I do not like it

Nice Scripting Skill.

But Can you describe me some situations in which It will help me in improving my skill?

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +2 Vote: I do not like it

    Shell scripting is very powerful. It's mostly used to automate a set of commands and you have hundreds of programs at your disposal which you can integrate to solve problems. It makes life easier for everyone be it developers, testers or ordinary Linux users. I hope you got your answer.