notification about new live streams from YouTube to your Telegram channel

dm9pZCAq 05bc046691 don't complain if no videos found 3 роки тому
.gitignore 2a385d3a64 add .gitignore 4 роки тому
LICENSE 6990315cd4 add LICENSE 4 роки тому
README.md afd8a57153 get_yt_id.py: increase speed by using re instead of bs4 3 роки тому
config.py 148ec844c1 fix paths 3 роки тому
database.py 57e27bc71f fix HUGE bug, get back to python3.8 3 роки тому
get_chat_id.py 6a1863df87 add get_chat_id.py 4 роки тому
get_yt_id.py 23863b815b improve typing 3 роки тому
invidious.py 05bc046691 don't complain if no videos found 3 роки тому
main.py 05bc046691 don't complain if no videos found 3 роки тому
requirements.txt 3e196f91b0 add requirements.txt 4 роки тому

README.md

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