tl;dr: I have created a web crawler tool that can download all your AC solutions in one go. Just provide the username and it will download all the code for you.
To fit the use case when we often try to view or download other people’s solutions to learn more, or when we try to download our own solutions and like to archive them (the latter especially being a very cumbersome task, due to which people rarely try it):
I have created a web crawler tool for CodeChef. It can download all AC solutions of a CodeChef user. Just provide the username and that’s it. It will download everything for you. It has some decent features, and I’ll be rolling out new features in the future hopefully.
Here is the github repository link: Mayank Bhura’s github project.
Please feel free to try it out, and any feedback is welcome.
Usage instructions etc are given in the repository README.
It is just a jar file, so just download it and get started!
Feedback link: here.
Hey mb1994, We would like to get on a call with you and discuss the entire functionality or your project and the effect it might have on CodeChef. So, could you please send us your contact details at: feedbcak[at]codechef[dot]com
Codechef site changed, so this is not working any more. I have made changes to the crawler along with some feature additions
-> Makes separate directories for every contest, and saves the associated submissions in the corresponding directories.
-> Previously, crawler would only fetch the last AC solution, but this logic might fail in case of long contest. Now the crawler will fetch single best solution considering the score, time and memory (Fetches an AC submission with best score, minimum time and minimum memory usage).
Exception in thread “main” java.lang.NumberFormatException: For input string: “H
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at sun.misc.FloatingDecimal.parseDouble(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
Well that is strange, I tested this for 7 users and I was successfully able to download the solutions contest wise (for each user).
I guess I missed an edge case :P. I will look into the issue and get back to you on this.
There is nothing wrong with the crawler. For this contest ISCC2017, the time and memory is hidden (for all submissions) ,whereas the crawler expects these attributes to be a double datatype, thus it is throwing an error.
I guess its an external contest, so the organisers would have some reason to hide these attributes.
It passed for other users since they didn’t participate in this contest. Moreover crawler don’t expect such attributes in submission page.
I will definitely modify the crawler for such cases. I never expected the time and memory to be hidden!