Giter Site home page Giter Site logo

hackerrank-sync's Introduction

HackerRank Wget - download your sumbitted solutions offline

What

Downloads your solutions from HackerRank to your computer. Like this.

Why

To keep track of your performance, reflect on old code and improve.

Why Scala

A dynamic language like JavaScript or Python could have been handier for this task, but why not?

How to use

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.

  1. Install sbt: https://www.scala-sbt.org/1.x/docs/Setup.html
  2. Run sbt in the root folder
  3. Wait for sbt to download all the sbt dependencies…
  4. Inside sbt console run compile command
  5. Wait for sbt to download all the project dependencies and compile the source code…
  6. Inside sbt console run run command

TODO

  • - 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.lang where lang is 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)

hackerrank-sync's People

Contributors

bitnot avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

sgumirov

hackerrank-sync's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.