Documentation | Crates.io | Repository
A crate for fetching and parsing esports data from HLTV.org.
This crate allows you to fetch and parse upcoming matches, results,
event information, player performance. This crate uses async calls via reqwest
and parses the HTML document with tl
.
Currently, the following API calls are supported:
crate::upcoming
crate::results
The builders in hltv
allow you to build a generic Request
object with a Request::fetch
method.
```rust
async fn results() -> Result<(), Box
let matches = req.fetch().await?; // <-- this has type Vec<MatchResult>
Ok(())
} ```
This API mimics the way you discover information on HLTV. Summary pages (like HLTV Matches) contains less information in the HTML document than the detailed match-specific page.
This project is dual-licensed under the MIT and Apache 2.0 license.