This commit is contained in:
Robin Appelman 2023-11-18 17:11:54 +01:00
commit 53cc7822c4
26 changed files with 31748 additions and 73 deletions

25
README.md Normal file
View file

@ -0,0 +1,25 @@
# ugc-scraper
*We have ugc api at home*
## Usage
```rust
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(())
}
```