README.md 1.5 KB

yt-notify

util for notification about new live streams from YouTube to your Telegram channel

requirements
usage
$ python3 -m venv venv
$ . ./venv/bin/activate
$ pip install -r requirements.txt

$ python -OO -- main.py

channels list

format

[
  {
    "id": "UC2eYFnH61tmytImy1mTYvhA"
  },
  {
    "id": "UCVls1GmFKf6WlTraIb_IaJg",
    "timeout": 300,
    "chat": 1010101
  }
]
mandatory:
optional:
  • timeout - timeout in seconds between new videos info requests
  • chat - you can specify another Telegram chat locally, to use it instead of CHAT_ID from config.py

utils

get_chat_id.py

get id of telegram channel for CHAT_ID in config.py

usage

before running you need specify your API_ID, API_HASH and TOKEN in config.py

then add bot to your channel and send any message to this channel and bot will print id of your channel

get_yt_id.py

get id of YouTube channel by name

usage
$ python3 get_yt_id.py https://www.youtube.com/c/LukeSmithxyz
UC2eYFnH61tmytImy1mTYvhA