Hi all, I just released second version of cf — tool for submitting code from command line.
Usage is in readme on github: https://github.com/Komosa/cf
In order to use it on tommorow's contest, just type cf con 1463
why? all existing solutions was written in python/ruby, and I think that such a tool shouldn't depend on them. It is also up to date with current page layout/api.
Feel free to discuss here, but if you find any bugs or want new features, please (also) fill issue on github.
Hi, new version is released. It is battle tested in regular contest now.
Thanks for making this! Can we use it to submit to gym?
Not yet, I will add it soon.
I just published new version. I correctly submitted code to one of past/finished gyms with it.
Could you please check if it matches your expectations? Just use gym number in place of contest/problem code. (It could be found in all links to gym problems/problemsets, and should be larger than 100000).
Can I use this with cygwin? How?
If you don't mind using precompiled binary, I think that version build for windows and placed in appropriate location (aka PATH) should work. Did you tried that?
Can you provide the link for the documentation of the submission API which was used?
No particular official cofeforces.com API was used, I don't even know if it was available at the time of creation.
During development, I just looked up all needed URLs, that was typical way of doing that kind of software (at least for me ;)) Looking at the code, URL for submission is
http://mirror.codeforces.com/contest/675/submit?csrf_token=03110b969ffffff36c768b25efa1b3b1
with appropriate details (contest id, CSRF token value).I didn't used the site (and thus my wrapper) over 3 years now.
If you (or anyone reading) have any recent experience with this tool, please let me know — I could fix any compatibility issues or add note that it is obsolete (depending on level of discrepancy). If you are into golang programming, I will be also happy to accept any GH' PRs.
Meh, logging API changed, so tool is no longer working.
I updated tool to work with current codeforces.com. https://github.com/Komosa/cf/releases/tag/v2.0.0
I will publish binaries soon, ;)
Auto comment: topic has been updated by Przemek (previous revision, new revision, compare).
This is just fantastic. Thank you!!