#api-bindings #web-api #zdf #mediathek #ard #mediathekview

mediathekviewweb

Client for the MediathekViewWeb API

5 unstable releases

0.3.0 Mar 27, 2024
0.2.0 Oct 14, 2023
0.1.2 Oct 6, 2023
0.1.1 Oct 4, 2023
0.1.0 Oct 3, 2023

#626 in Web programming

Download history 6/week @ 2024-02-23 3/week @ 2024-03-01 4/week @ 2024-03-08 3/week @ 2024-03-15 83/week @ 2024-03-22 43/week @ 2024-03-29 9/week @ 2024-04-05

139 downloads per month

MIT license

19KB
383 lines

mediathekviewweb-rs

Build Status Crates.io Documentation License: MIT

A client library for interacting with the MediathekViewWeb API.

Example

let results = mediathekviewweb::Mediathek::new(USER_AGENT)?
    .query([mediathekviewweb::models::QueryField::Topic], "tagesschau")
    .query(
        [mediathekviewweb::models::QueryField::Title],
        "tagesschau 20.00 Uhr",
    )
    .duration_min(std::time::Duration::from_secs(10 * 60))
    .duration_max(std::time::Duration::from_secs(30 * 60))
    .include_future(false)
    .sort_by(mediathekviewweb::models::SortField::Timestamp)
    .sort_order(mediathekviewweb::models::SortOrder::Descending)
    .size(2)
    .offset(3)
    .await?;

println!("{results:#?}");
Results in something like

License

This project is licensed under the MIT License.

See LICENSE for more information.

Dependencies

~4–18MB
~237K SLoC