Git Product home page Git Product logo

wastedonlol's Introduction

wastedonlol

Back when I started playing League of Legends, there was a site called wastedonlol. It was able to sum up the time you have spent in all the matches that you've ever played. At some point however, Riot Games removed access to that data from the public API. While the original page still exists and also still displays an amount of hours, that's only the time spent in ranked games. Normal games don't get taken into account anymore. Since I wasn't able to find any script or tool that allows me to retrieve this data, I simply wrote my own.

It's written in Golang and requires an API key and your summoner name.

Here's how to use it:

  1. Generate an API key over at https://developer.riotgames.com/
  2. Find out on which of these endpoints your account lies on:
  • ru
  • kr
  • br1
  • oc1
  • jp1
  • na1
  • eun1
  • euw1
  • tr1
  • la1
  • la2
  1. Launch the tool:
go run . --server="euw1" --apikey="YOUR_KEY" --summonername="YOUR_SUMMONER_NAME"

Optionally you can set the flag verbose to true, in order to get additional information while you are waiting. This is might be helpful, since it takes quite a while to retrieve all your information, due to the fact that the LoL API has quite the strict rate limiting.

20 requests per second

100 requests per 2 minutes

wastedonlol's People

Contributors

bios-marcel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wastedonlol's Issues

can not run script

Hi i just cloned the script but i get an error when trying to execute it.
I have requested a new key via the developers page and checked it again but i get the following error.

`PS C:\Users\bissc\Downloads\wastedonlol-master\wastedonlol-master> go run main.go --server="euw1" --apikey="x" --summonername="x"

command-line-arguments

.\main.go:30:23: undefined: NewLimiter
.\main.go:31:23: undefined: NewLimiter`

Speed up successive runs

Since requesting the list of matches itself doesn't take very long, we could remember the last given duration including the last match that was queried, so the next time you query, only the new matches since then will be queried. This would give a major boost for successive runs.

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.