mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
Scraper for ugcleague.com
- HTML 96.9%
- Rust 3%
| .github/workflows | ||
| api-server | ||
| examples | ||
| src | ||
| tests | ||
| types | ||
| .envrc | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| flake.lock | ||
| flake.nix | ||
| module.nix | ||
| overlay.nix | ||
| package.nix | ||
| README.md | ||
ugc-scraper
We have ugc api at home
Usage
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(())
}