Skip to content
A simple wrapper for speedrun.com
V
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Doc.md
LICENSE
README.md
speedrun.v

README.md

A simple wrapper for Speedrun.com REST API written in V

This module contains functions for reading main data from speedrun.com.

Installation

v install Iaiao.speedrun

Usage

Documentation generated with v doc - in Doc.md

Example

Print all registered runners (skipping guests) of first 500 Minecraft runs:

import iaiao.speedrun

fn main() {
    minecraft := speedrun.search_game("mc")?
    runs := minecraft.runs(500, 0)
    mut users := []speedrun.User
    for run in runs {
        for player in run.players {
            if player.rel == "user" {
                user := speedrun.fetch_user(player.id)?
                users << user
            }
        }
    }
    for user in users {
        println(user.names.international)
    }
}

Not implemented yet

  • Multiple filters
  • Genres, Platforms, Publishers, Regions, Series, Variables (waiting for generics or type args to avoid copypasting)
  • Not read-only API
You can’t perform that action at this time.