notification about new live streams from YouTube to your Telegram channel
dm9pZCAq 05bc046691 don't complain if no videos found | %!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
LICENSE | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
config.py | %!s(int64=3) %!d(string=hai) anos | |
database.py | %!s(int64=3) %!d(string=hai) anos | |
get_chat_id.py | %!s(int64=4) %!d(string=hai) anos | |
get_yt_id.py | %!s(int64=3) %!d(string=hai) anos | |
invidious.py | %!s(int64=3) %!d(string=hai) anos | |
main.py | %!s(int64=3) %!d(string=hai) anos | |
requirements.txt | %!s(int64=4) %!d(string=hai) anos |
util for notification about new live streams from YouTube to your Telegram channel
python
>= 3.8token
form BotFatherapi_id
and api_id
form telegram.orgCHAT_ID
could be obtained with get_chat_id.py$ python3 -m venv venv
$ . ./venv/bin/activate
$ pip install -r requirements.txt
$ python -OO -- main.py
[
{
"id": "UC2eYFnH61tmytImy1mTYvhA"
},
{
"id": "UCVls1GmFKf6WlTraIb_IaJg",
"timeout": 300,
"chat": 1010101
}
]
id
- channel id obtained with get_yt_id.pytimeout
- timeout in seconds between new videos info requestschat
- you can specify another Telegram chat locally,
to use it instead of CHAT_ID
from config.pyget id
of telegram channel for CHAT_ID
in config.py
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 id
of YouTube channel by name
$ python3 get_yt_id.py https://www.youtube.com/c/LukeSmithxyz
UC2eYFnH61tmytImy1mTYvhA