Hello, Codeforces! I made announces of rounds quite often, so some time ago I made a script that gives out the entire list of testers divided by colors. Of course, you can rewrite it a little, so that the order is whatever you want.
Script uses Codeforces API, so first of all you need to go to your account settings and generate API keys and put the open one in the "key" file, and the secret one in the "secret" file in the same folder with the script (or just assign them to the corresponding variables in the script). Now you just need to fill in the array contestids with ids of mashups that you used for testing and run the script. At the end of its work, the script will create file "en.txt " with thanks to all the testers.
I hope it will help you to quickly change the list of testers. Good luck to all and successful rounds!
It's really funny, when everybody (including me in past) implements codeforces scripts in python, puts it in some folder and then forgets this folder, forgets that it exists and how to use it. And of course implements api requests in each script from scratch
9 month ago I implemented typescript SDK. It's really easier to implement any script with SDK and strict types: just look into your script, but rewritten with SDK
Which advantages does it have?
npx codeforces --help
npx codeforces <script> --help
myyour python script without virtualenv was broken after system update?)Disadvantages:
ContestId
Links:
Oh, we're advertising SDKs? Might I add my Polygon SDK for Go?
Thanx for the question, I understood that I forgot to explicitly state my point:
As long as ad of SDK (any SDK, yes), I strongly advice to make any scripts as mainainable as possible: it's not codeforces problem, it has different goals and usages. And do not forget that you are not on contest!
contestids = ['ids of gyms you used for testing']
withcontestids = sys.argv[1:]
and addingif len(sys.argv) == 1: print('Usage: ...')
will drastically improve this script