- No API consumption required (which is great!).
- Do not deal with API Limits (scrapping is free, isn't it?).
$ git clone https://github.com/Telematica/YouTubeTelegramChannel.git
$ yarn install
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
$ /path/to/node /Users/your-user/YouTubeTelegramChannel/src/bot.js
-
https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/list
-
https://stackoverflow.com/questions/32454238/how-to-check-if-youtube-channel-is-streaming-live
-
https://stackoverflow.com/questions/42335016/dotenv-file-is-not-loading-environment-variables
-
https://eslint.org/docs/latest/use/configure/language-options#specifying-globals