ugc-scaper/examples
2026-03-26 23:44:23 +01:00
..
player.rs updates 2026-03-26 23:44:23 +01:00
readme.rs updates 2026-03-26 23:44:23 +01:00
seasons.rs historical seasons 2023-11-18 21:10:37 +01:00
team.rs steam group on roster page 2024-02-23 22:33:26 +01:00

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

#[tokio::main]
async fn main() -> Result<()> {
    let client = UgcClient::new();
    let id = SteamID::from_steam64(76561198024494988).unwrap();
    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(())
}