Skip to content

glahiator/for_how_long

Repository files navigation

Youtube channel all video duration counter Telegram Bot

A Telegram bot counts the duration of all videos from the received channel

Features

  • Using youtube data API.
  • Receive video sended by users and count all videos uploaded on the channel.
  • Send to user all time duration divided into days hours minutes.
  • Save requested data to cache for fast answer if not new videos uploaded.

ToDo

  • Handle more exceptions.
  • LOGGER support.
  • Update command.
  • Send channel banner.
  • Set inline bot.

Installation

  • Clone this git repository.
git clone https://github.com/glahiator/for_how_long.git
  • Change Directory
cd for_how_long
  • Install requirements with pip3
pip3 install -r requirements.txt

Configuration

There are way for configuring this bot.

  1. Create file info.ini.
  2. Add youtube API key in file with next structure ['API']['KEY'].
  3. Add telegram token with next ['TELEGRAM']['TOKEN'].

Configuration Values

  • config['TELEGRAM']['TOKEN'] - Get it by contacting to BotFather
  • config['API']['KEY'] - Get it by step-by-step complete guide

Copyright & License

About

⏲️ Telegram bot counts the total duration of the video on the YouTube channel

Topics

Resources

License

Stars

Watchers

Forks

Languages