No Description

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