https://github.com/kyagara/lol-match-crawler
Very simple crawler for League of Legends matches.
https://github.com/kyagara/lol-match-crawler
crawler golang league-of-legends pgx postgres riot-games sql
Last synced: 7 months ago
JSON representation
Very simple crawler for League of Legends matches.
- Host: GitHub
- URL: https://github.com/kyagara/lol-match-crawler
- Owner: Kyagara
- License: mit
- Created: 2023-12-08T18:07:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T18:10:39.000Z (over 1 year ago)
- Last Synced: 2025-01-29T10:16:57.735Z (8 months ago)
- Topics: crawler, golang, league-of-legends, pgx, postgres, riot-games, sql
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lol-match-crawler
This is a very simple crawler for League of Legends matches purely for testing [equinox](https://github.com/Kyagara/equinox/v2).
## Usage
```bash
EQUINOX_KEY="RGAPI..." DATABASE_URL="postgres://postgres:user@localhost:5432/database" go run . # or go build . && EQUINOX_KEY="" DATABASE_URL="" ./lol-match-crawler
```## How it works
It starts by fetching the Korean challenger league with `league-v4` for 5v5 Ranked Solo queue, then it does the following:
- Loops through the league entries and gets each summoner with the `summoner-v4` API to acquire their PUUID.
- Loops through the summoners and gets their match list with 5 recent ranked 5x5 solo matches with `match-v5`.
- Loops through the matches and gets the match details and the match timeline with `match-v5`.