13 unstable releases (3 breaking)
0.4.1 | Feb 25, 2024 |
---|---|
0.4.0 | Feb 23, 2024 |
0.3.3 | Feb 23, 2024 |
0.2.4 | Nov 30, 2023 |
0.1.1 | Nov 18, 2023 |
#1282 in Web programming
1MB
2K
SLoC
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
~11–24MB
~379K SLoC