mirror of
https://codeberg.org/icewind/ugc-scaper.git
synced 2026-06-03 18:24:10 +02:00
historical seasons
This commit is contained in:
parent
43bfba6307
commit
e20a9cdae9
8 changed files with 3064 additions and 3 deletions
17
examples/seasons.rs
Normal file
17
examples/seasons.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use main_error::MainResult;
|
||||
use ugc_scraper::UgcClient;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> MainResult {
|
||||
let client = UgcClient::new();
|
||||
let modes = client.previous_seasons().await?;
|
||||
for mode in modes {
|
||||
println!("{}", mode.mode);
|
||||
|
||||
for season in mode.seasons {
|
||||
println!(" {}: {}", season.id, season.name);
|
||||
}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue