Downloads your solutions from HackerRank to your computer. Like this.
To keep track of your performance, reflect on old code and improve.
A dynamic language like JavaScript or Python could have been handier for this task, but why not?
Copy application.conf.template to application.conf, add any additional settins from reference.conf.
You need to log into Hackerrank in your browser and copy the value of your hrank_session cookie.
Note:
It is pretty slow right now as all the downloads are synchronous, on the bright side it does not DDOS HackerRank API.
So plug in your laptop and go do something useful.
- Install sbt: https://www.scala-sbt.org/1.x/docs/Setup.html
- Run
sbtin the root folder - Wait for sbt to download all the sbt dependencies…
- Inside sbt console run
compilecommand - Wait for sbt to download all the project dependencies and compile the source code…
- Inside sbt console run
runcommand
- - Download all (up to 1k) solutions in 'master' and arrange into folders by slug
In case there are multiple submissions in the same language, take the lates
In case there are multiple submissions in different languages, take the latest of each
Name solution files as
solution.langwherelangis appropriate extension for the language Cookies to be laded from a file - - Logging
- - Download description and test cases
- - Filter by status (Accepted/Failed)
- - Download all solutions in all contests
- - Filter by date (solutions since date, last x days)
- - Merge indexes (readme.md files) to allow partial updates (last x days)
- - Async (futures? monix? akka?)
- - Exclude contests in progress (?)
- - Filter by language
- - Request pagination, downloading more than 1k submissions
- - Authentication by username and password (as opposed ot loading cookies from file)