ugc-scraper

Crates.iougc-scraper
lib.rsugc-scraper
version0.4.1
sourcesrc
created_at2023-11-18 22:07:45.907996
updated_at2024-02-25 12:46:10.321657
descriptionScraper for ugcleague.com
homepagehttps://github.com/icewind1991/ugc-scaper
repository
max_upload_size
id1040758
size5,456,450
Robin Appelman (icewind1991)

documentation

README

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(())
}
Commit count: 0

cargo fmt