#video #wordpress #wp-scraper #video-scraper #wp-video

bin+lib pf_cmd

petit-filou scans wordpress websites to find videos

6 releases

new 0.1.5 Feb 20, 2025
0.1.4 Feb 18, 2025

#982 in Command line utilities

Download history 399/week @ 2025-02-12

399 downloads per month

GPL-3.0-or-later

54KB
980 lines

petit-filou

petit-filou or pf is a command-line tool designed for retrieving videos from wordpress websites. petit-filou features a range of search options, allowing users to finely adjust their search criteria.

ci codecov crates.io version crates.io version

Installation

Binary

Download latest release.

Docker

$ docker pull ghcr.io/petit-chat/pf:latest

Build Locally

$ make build

Usage

$ pf --help
Scans WordPress websites to find videos.

Supported MIME types: video/mp4 and video/quicktime (.mov).

Usage: pf [OPTIONS] <URL>

Arguments:
  <URL>
          WordPress base URL (e.g. <http://example.com>)

Options:
      --before <BEFORE>
          Result set published before a given date (cf. <https://core.trac.wordpress.org/ticket/41032>)

      --modified-before <MODIFIED_BEFORE>
          Result set modified before a given date (cf. <https://core.trac.wordpress.org/ticket/41032>)

      --after <AFTER>
          Result set published after a given date (cf. <https://core.trac.wordpress.org/ticket/41032>)

      --modified-after <MODIFIED_AFTER>
          Result set modified after a given date (cf. <https://core.trac.wordpress.org/ticket/41032>)

  -e, --exclude <EXCLUDE>
          Ensures result set excludes specific IDs

      --categories-exclude <CATEGORIES_EXCLUDE>
          Ensures result set excludes specific category IDs

      --tags-exclude <TAGS_EXCLUDE>
          Ensures result set excludes to specific tag IDs

  -h, --help
          Print help (see a summary with '-h')

  -V, --version
          Print version

Examples

Retrieve a Maximum of Video URLs

$ pf http://www.example.com slow

Retrieve Video URLs After a Specified Date

$ pf http://www.example.com fast --after 2024-04-06T18:44:41

Retrieve Video URLs Excluding Specific Tags

$ pf http://www.example.com fast --tags-exclude 1 --tags-exclude 2 --tags-exclude 3

Dependencies

~10–22MB
~304K SLoC