boleyn.su's blog

By boleyn.su, 10 years ago, In English

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.

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

»
10 years ago, # |
  Vote: I like it +11 Vote: I do not like it

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

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

    Everything is possible using C++

    • »
      »
      »
      10 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      ... but you'll need a lot of libs

»
10 years ago, # |
Rev. 2   Vote: I like it +8 Vote: I do not like it

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.

  • »
    »
    10 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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.)

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

      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)

      • »
        »
        »
        »
        10 years ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        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.)

»
10 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Could you change cRUL to cURL

»
10 years ago, # |
  Vote: I like it +3 Vote: I do not like it

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

»
10 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

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

»
4 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

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

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

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

    direct link

  • »
    »
    3 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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.