Crate vlr_scraper

Crate vlr_scraper 

Source
Expand description

§vlr-scraper

A Rust library for scraping Valorant esports data from vlr.gg.

§Quick start

use vlr_scraper::{EventType, Region, VlrClient};

let client = VlrClient::new();

// Fetch upcoming events
let events = client
    .get_events(EventType::Upcoming, Region::All, 1)
    .await?;

// Fetch matches for the first event
let matches = client.get_event_matchlist(events.events[0].id).await?;

// Get detailed match info
let match_detail = client.get_match(matches[0].id).await?;

// Fetch a player profile (info, teams, agent stats, news, placements)
let player = client.get_player(17323, Default::default()).await?;
println!("{} from {:?}", player.info.name, player.info.country);

// Fetch a player's match history
let player_matches = client.get_player_matchlist(17323, 1).await?;

// Fetch a team's match history
let team_matches = client.get_team_matchlist(6530, 1).await?;

Re-exports§

pub use error::Result;
pub use error::VlrError;
pub use model::*;

Modules§

error
model

Structs§

VlrClient
The main entry point for interacting with VLR.gg.