mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 10:14:11 +02:00
updates
This commit is contained in:
parent
5a6d7006e0
commit
fb383652c8
22 changed files with 3161 additions and 3071 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue