Блог пользователя boleyn.su

Автор boleyn.su, 11 лет назад, По-английски

Minutes ago, I read a post by HAL9000, and thought that there might be other codeforces users who have the same need. I used to write a tool to download all my solutions, and I'd like to share with others.

To use the tool, you need to download 1) dlls which contains cURL and boost 2) exe (click the button "Raw" to download)

Then put the dlls and the exe in a folder, run downloader.exe and input your handle, and then all last accepted solution will be download to this folder.

Source code of this tool can be found here.

If you have any problems using this tool, leave a comment or send me a message.

UPD0: Python version by imslavko (Thanks to GFW(something bad for Chinese), this link cannot be accessed directly for Chinese users. But you can view it with the help of a proxy however.)

UPD1: I am sorry that there is no boost or libcurl on my new laptop, so I think I will no longer update this tool. However, you can DIY as the source code is provided.

UPD2 The tool is currently out dated due to the changes on CF. I may update it when I get some time or you can help fix it by sending me a PR.

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

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

Happy to see that it is possible to do such things using cpp :)

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

Shameless plug: I have written such script in Python a while ago: link. And it is cross-platform :)

Edit: it might be slower but it's easier to get started, since the only thing you need is python 2.7, no messing around linking against boost whatsoever.

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

    I added your link to my post, and I have to say that it is possible to compile cRUL, boost and my code into a file but I didn't do it and it is also cross-platform. (cURL and boost are cross-platform. If you are using unix/linux you can compile the source yourslef.)

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

      Don't get me wrong, you've done a great job, someone will need it and find your code one day! I am just saying it might be easier for someone to just run python script rather than compiling and linking against boost which is not a trivial task for someone who have never done it before. (not a problem for me though)

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

        You too.

        I am just saying that C++ can also be cross-platform and C++ can be compile to a file that don't need extra *.dll or *.so so that a user who use C++ and read this post won't feel C++ is that bad.(I didn't feel so because I know C++ can be so powerful, but there might be someone didn't know.)

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

Could you change cRUL to cURL

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

It does not work with proxy connection, how to fix it?

»
11 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Pascal solutions saves as java. Please fix it.
UPD. All unknown types saves as java.

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Cannot find the dlls file. Did you remove it from github?

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

    Yes, he did, but you could rollback the repository revision and get the file from commit

    direct link

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

    Sorry. I removed them due to the license issue. I do not know how to declare the license for these dlls properly. If someone does, please send me a PR.