youtube-collector is a simple CLI application used for collection of YouTube channel and video statistics.
-
Enable YouTube Data APIs on your Google Cloud project.
-
Get your API key in the Google Cloud Console.
-
Get your YouTube Channel ID in the "advanced settings" of your YouTube Channel.
-
Use the
cli
app:A library to extracttion of statistics from YouTube channels and videos. Usage: cli [OPTIONS] --yt-key <YouTube Data API Key> --yt-channel <YouTube Channel ID> Options: --yt-key <YouTube Data API Key> --yt-channel <YouTube Channel ID> -f, --format <FORMAT> [default: string] [possible values: string, json, csv] -h, --help Print help -V, --version Print version
For development build and running use:
cargo run -- --yt-key $YT_KEY --yt-channel $YT_CHANNEL_ID
To build production release use the cargo and build:
cargo build --release && \
./target/release/cli --yt-key $YT_KEY --yt-channel $YT_CHANNEL_ID --format json
This CLI Rust tool was build for the collection of metrics for the Ogrodje Podcasts. If you are looking for other similar tools, make sure you also check the anchor-collector.