Блог пользователя vampire_slayer

Автор vampire_slayer, история, 8 лет назад, По-английски

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.

  • Проголосовать: нравится
  • +15
  • Проголосовать: не нравится

»
8 лет назад, # |
  Проголосовать: нравится +2 Проголосовать: не нравится

Nice Scripting Skill.

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

  • »
    »
    8 лет назад, # ^ |
      Проголосовать: нравится +2 Проголосовать: не нравится

    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.