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

mediathekviewweb

Client for the MediathekViewWeb API

8 releases

0.4.1 Feb 21, 2025
0.4.0 Jul 22, 2024
0.3.1 May 23, 2024
0.3.0 Mar 27, 2024
0.1.2 Oct 6, 2023

#415 in Web programming

Download history 8/week @ 2024-12-04 10/week @ 2024-12-11 4/week @ 2025-02-05 222/week @ 2025-02-19 223/week @ 2025-02-26 68/week @ 2025-03-05 5/week @ 2025-03-12

518 downloads per month

MIT license

29KB
648 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–16MB
~200K SLoC