Scraper for ugcleague.com
  • HTML 96.9%
  • Rust 3%
Find a file
2023-11-19 15:05:45 +01:00
api-server api: transactions 2023-11-19 15:05:45 +01:00
examples historical seasons 2023-11-18 21:10:37 +01:00
src add transactions 2023-11-19 15:04:09 +01:00
tests add transactions 2023-11-19 15:04:09 +01:00
.envrc init 2023-11-15 21:05:11 +01:00
.gitignore api server 2023-11-18 19:23:42 +01:00
Cargo.lock add transactions 2023-11-19 15:04:09 +01:00
Cargo.toml add transactions 2023-11-19 15:04:09 +01:00
flake.lock flake update 2023-11-16 17:00:55 +01:00
flake.nix flake update 2023-11-16 17:00:55 +01:00
README.md work 2023-11-18 18:12:55 +01:00

ugc-scraper

We have ugc api at home

Usage

use ugc_scraper::{Result, SteamID, UgcClient};

#[tokio::main]
async fn main() -> Result<()> {
    let client = UgcClient::new();
    let id = SteamID::from(76561198024494988);
    let player = client.player(id).await?;
    println!("{}", player.name);
    for team in player.teams {
        println!(
            "  {} playing {} since {}",
            team.team.name, team.league, team.since
        )
    }

    Ok(())
}