#home #web-scraping #ugc-scraper #ugc-client

ugc-scraper-types

Scraper for ugcleague.com - data types

3 releases

new 0.1.2 Apr 11, 2025
0.1.1 Apr 11, 2025
0.1.0 Apr 11, 2025

#20 in #home

30 downloads per month
Used in ugc-scraper

MIT/Apache

13KB
349 lines

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(())
}

Dependencies

~3.5–5.5MB
~99K SLoC