Crates.io | ugc-scraper |
lib.rs | ugc-scraper |
version | 0.4.1 |
source | src |
created_at | 2023-11-18 22:07:45.907996 |
updated_at | 2024-02-25 12:46:10.321657 |
description | Scraper for ugcleague.com |
homepage | https://github.com/icewind1991/ugc-scaper |
repository | |
max_upload_size | |
id | 1040758 |
size | 5,456,450 |
We have ugc api at home
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(())
}