Skip to content

nodeus/random-youtube-video-from-playlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random youtube video from playlist telegram bot

Random YouTube video link from playlist using YouTube Data API v3, python-telegram-bot, requests, random and urlllib written in Python.

Бот для телеграмма, по команде /video выдаёт случайное видео из определенного плейлиста. Настройки в файле configtb.py — ключ Google API, токен бота телеграмма и ID плейлиста в YouTube.

Prerequisites

Google Developer Key for YouTube
key = 'YOUR_DEVELOPER_KEY'

YouTube playlist ID
playlist_id = 'YOUTUBE PLAYLIST ID'

Your telegram bot token, get it from @BotFather
api_token = 'TELEGRAM BOT TOKEN'

Google APIs Client Library
pip3 install --upgrade google-api-python-client

Python Telegram Bot
pip3 install --upgrade python-telegram-bot

Requests
pip3 install --upgrade requests

About

Telegram bot for sending random videos from yourtube playlist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages