#youtube #comments #utility #client-secret #channel #create #client-id

app youtube-first-comment

A simple program that creates a new comment on YouTube when a new video is published for the specified channel

5 unstable releases

0.6.0 Nov 22, 2024
0.5.1 Oct 2, 2024
0.4.2 Sep 28, 2024

#398 in Command line utilities

Download history 537/week @ 2024-09-28 22/week @ 2024-10-05 2/week @ 2024-10-12 68/week @ 2024-11-16 63/week @ 2024-11-23 11/week @ 2024-11-30

142 downloads per month

MIT license

17KB
195 lines

Youtube First Comment

A simple program that creates a new comment on YouTube when a new video is published for the specified channel. Once the comment is created, the program exits.

Installation

cargo install youtube-first-comment

Usage

Usage: yfc [OPTIONS] --google-client-id <GOOGLE_CLIENT_ID> --google-client-secret <GOOGLE_CLIENT_SECRET> --comment <COMMENT> --channel-id <CHANNEL_ID>

Options:
      --google-client-id <GOOGLE_CLIENT_ID>          Google client ID
      --google-client-secret <GOOGLE_CLIENT_SECRET>  Google client secret
      --comment <COMMENT>                            The comment body
      --channel-id <CHANNEL_ID>                      YouTube channel ID
      --poll-interval <POOL_INTERVAL>                Poll interval (in seconds) [default: 60]
      --wait-limit <WAIT_LIMIT>                      Max wait time (in minutes) [optional, defaults to inf]
  -h, --help                                         Print help
yfc --comment "My first comment" \
    --channel-id "<CHANNEL_ID>" \
    --google-client-id "<GOOGLE_CLIENT_ID>" \
    --google-client-secret "<GOOGLE_CLIENT_SECRET>" \
    --poll-interval 0.5 \
    --wait-limit 300

You can find the channel id here and you will have to create an OAuth 2 Client ID on Google Cloud.

Dependencies

~23–37MB
~612K SLoC