| Crates.io | ugc-scraper |
| lib.rs | ugc-scraper |
| version | 0.4.4 |
| created_at | 2023-11-18 22:07:45.907996+00 |
| updated_at | 2025-04-11 18:21:21.864839+00 |
| description | Scraper for ugcleague.com |
| homepage | https://github.com/icewind1991/ugc-scaper |
| repository | |
| max_upload_size | |
| id | 1040758 |
| size | 5,684,628 |
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(())
}