Scraper for ugcleague.com
  • HTML 96.9%
  • Rust 3%
Find a file
2025-04-14 23:15:21 +02:00
.github/workflows flake rework 2024-11-08 23:36:02 +01:00
api-server optional team image 2025-04-14 23:15:21 +02:00
archiver more strict types 2025-04-14 20:47:33 +02:00
examples steam group on roster page 2024-02-23 22:33:26 +01:00
src optional team image 2025-04-14 23:15:21 +02:00
tests more strict types 2025-04-14 20:47:33 +02:00
types optional team image 2025-04-14 23:15:21 +02:00
.envrc init 2023-11-15 21:05:11 +01:00
.gitignore api server 2023-11-18 19:23:42 +01:00
archiver.nix archiver wip 2025-04-11 20:20:51 +02:00
Cargo.lock team parse fixes 2025-04-14 16:23:46 +02:00
Cargo.toml team parse fixes 2025-04-14 16:23:46 +02:00
flake.lock updates 2024-12-02 15:15:39 +01:00
flake.nix archiver wip 2025-04-11 20:20:51 +02:00
module.nix flake rework 2024-11-08 23:36:02 +01:00
overlay.nix archiver wip 2025-04-11 20:20:51 +02:00
package.nix optional team image 2025-04-14 23:15:21 +02:00
README.md flake rework 2024-11-08 23:36:02 +01:00

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(())
}