Skip to content

youtube-collector is a simple CLI application used for collection of YouTube channel and video statistics.

Notifications You must be signed in to change notification settings

ogrodje/youtube-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-collector

youtube-collector is a simple CLI application used for collection of YouTube channel and video statistics.

Usage

  1. Enable YouTube Data APIs on your Google Cloud project.

  2. Get your API key in the Google Cloud Console.

  3. Get your YouTube Channel ID in the "advanced settings" of your YouTube Channel.

  4. 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

Development

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

History

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.

Social && <3

GitHub stars GitHub watchers GitHub followers
Twitter Follow

About

youtube-collector is a simple CLI application used for collection of YouTube channel and video statistics.

Topics

Resources

Stars

Watchers

Forks