No Description

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

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