This commit is contained in:
Robin Appelman 2026-03-26 23:44:23 +01:00
commit fb383652c8
22 changed files with 3161 additions and 3071 deletions

View file

@ -1,5 +1,6 @@
use main_error::MainResult;
use std::env::args;
use std::str::FromStr;
use steamid_ng::SteamID;
use ugc_scraper::UgcClient;
@ -7,7 +8,7 @@ use ugc_scraper::UgcClient;
async fn main() -> MainResult {
let client = UgcClient::new();
let id = args().nth(1).expect("no steam id provided");
let id = SteamID::try_from(id.as_str()).expect("invalid steam id provided");
let id = SteamID::from_str(id.as_str()).expect("invalid steam id provided");
let player = client.player(id).await?;
println!("{}", player.name);
for team in player.teams {