Telematica / YouTubeTelegramChannel

Telegram Channel & Bot to Scrap and Notify YouTube Channels Live Videos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notify to your own Telegram Group or Channel if a YouTube Channel is Live

Why Scrapping instead of YouTube Data API

  • No API consumption required (which is great!).
    • Do not deal with API Limits (scrapping is free, isn't it?).

Getting started


Setup


Clone the repo

$ git clone https://github.com/Telematica/YouTubeTelegramChannel.git

Install dependencies (npm or yarn)

$ yarn install

On the .env file (root), input your Telegram Bot API token, and a mock cookie (optional)

API_TOKEN={your-telegram-bot-API-key}
COOOKIE={mock-cookie}

Make sure to create a log/ directory on @ root and an error/ subdirectory inside (log/errors)

|____logs/
| |____2023-02-19.log.json
| |____2023-02-18.log.json
| |____errors/
| |____2020-06-13.log.json
| |____2020-06-12.log.json
|____.gitignore
|____package.json
|____.env
|____tsconfig.json
|____.vscode
| |____settings.json
|____.eslintrc.json
|____src
| |____@types/
| |____constants/
| |____mock/
| |____utils/
| |____scrappers/
| |____requests/
| |____bot.js
| |____data/
|____LICENSE
|____.env.sample
|____jsdoc.json
|____tests/
| |____send-message-request.test.js
|____legacy/
|____.editorconfig
|____readme.md
|____yarn.lock

Up and Running

Execute the script. You will see debug output.

$ /path/to/node /Users/your-user/YouTubeTelegramChannel/src/bot.js

Reference

About

Telegram Channel & Bot to Scrap and Notify YouTube Channels Live Videos

License:MIT License


Languages

Language:HTML 99.3%Language:JavaScript 0.7%Language:Shell 0.0%