10 stable releases

3.0.5 Jan 20, 2025
3.0.4 Jan 15, 2025
3.0.2 Dec 7, 2024
3.0.0 Oct 25, 2024
1.1.1 Oct 18, 2024

#111 in Video

Download history 297/week @ 2024-10-08 249/week @ 2024-10-15 154/week @ 2024-10-22 8/week @ 2024-10-29 3/week @ 2024-11-05 244/week @ 2024-12-03 45/week @ 2024-12-10 116/week @ 2025-01-07 187/week @ 2025-01-14 49/week @ 2025-01-21

352 downloads per month

GPL-3.0-or-later

30KB
555 lines

pf_lib

A Rust library to retrieve WordPress MP4 videos. Supports filtering by date and including/excluding specific IDs, categories, and tags.

Example

use pf_lib::{FinderConfig, FinderTarget};

let config = FinderConfig {
    url: "http://example.com".to_string(),
    target: FinderTarget::Media,
    ..Default::default()
};

for url in pf_lib::find(&config) {
    println!("{}", url);
}

lib.rs:

This library provides functionality to find and fetch existing video URLs from a WordPress website.

The main components of this library are:

  • api: Handles interactions with the paginated WordPress API.
  • config: Defines configuration options for the Finder.
  • finder: Implements the logic to find and fetch existing video URLs.
  • link_utils: Utility functions for handling links.
  • mime_types: Defines supported MIME types for scraping.
  • url_extractor: Functions to extract URLs from WordPress API responses.

Dependencies

~6–19MB
~251K SLoC