3 releases
0.1.2 | Apr 11, 2025 |
---|---|
0.1.1 | Apr 11, 2025 |
0.1.0 | Apr 11, 2025 |
#25 in #home
377 downloads per month
Used in ugc-scraper
14KB
364 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
~100K SLoC