Giter Site home page Giter Site logo

galapypy / ytdl-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tgbot-collection/ytdlbot

0.0 0.0 0.0 262 KB

Download videos from Youtube and other platforms through a Telegram Bot

License: Apache License 2.0

Dockerfile 1.90% Python 98.10%

ytdl-bot's Introduction

ytdlbot

YouTube Download Bot๐Ÿš€

Download videos from YouTube and other platforms through a Telegram Bot

Deploy

Usage

https://t.me/benny_ytdlbot

Send link directly to the bot. Any platform supported by youtube-dl will also work.

Limitation of my bot

Because I have limited resources, hundreds of Gigabytes doesn't sound like a sustainable solution.

In that case, I added one limitation: 5GiB per 24 hours for each user. Might change in future

You can choose to become 'VIP' if you really need large traffic. And also, you could always deploy your own bot.

Features

  1. fast download and upload.
  2. ads free
  3. support progress bar
  4. audio conversion
  5. playlist support
  6. VIP support

How to deploy?

Choose your own preference.

Heroku

Use the button above! It should work like a magic.

Normal

  1. clone code
  2. install ffmpeg
  3. install Python 3.6+
  4. pip3 install -r requirements.txt
  5. set environment variables TOKEN, APP_ID and APP_HASH, and more if you like.
  6. python3 ytdl.py

Simple one line docker

Some functions, such as VIP, ping will be disabled.

docker run -e APP_ID=111 -e APP_HASH=111 -e TOKEN=370FXI bennythink/ytdlbot

docker-compose

Compatible with amd64, arm64 and armv7l

1. get docker-compose.yml

Download this file to a directory, for example ~/ytdl/docker-compose.yml

2. create VIP database

mkdir ~/ytdl/data/
touch ~/ytdl/data/vip.sqlite

3. create env file

mkdir ~/ytdl/env/
vim ~/ytdl/env/ytdl.env

you can configure all the following environment variables:

  • APP_ID: REQUIRED
  • APP_HASH: REQUIRED
  • TOKEN: REQUIRED
  • REDIS: REQUIRED
  • OWNER: owner username
  • QUOTA: quota in bytes
  • EX: quota expire time
  • MULTIPLY: vip quota comparing to normal quota
  • USD2CNY: exchange rate
  • VIP: enable VIP or not, default: disable
  • AFD_LINK
  • COFFEE_LINK
  • COFFEE_TOKEN
  • AFD_TOKEN
  • AFD_USER_ID
  • WORKERS: default 100

4. run

docker-compose up -d

Command

start - Let's start
about - Want to contribute?
ping - Bot running status
help - Anything troubles you?
ytdl - Download video in group
vip - Join VIP
terms - View Terms of Service

Test video

https://www.youtube.com/watch?v=BaW_jenozKc

Test Playlist

https://www.youtube.com/playlist?list=PL1Hdq7xjQCJxQnGc05gS4wzHWccvEJy0w

License

Apache License 2.0

ytdl-bot's People

Contributors

bennythink avatar jasonkhew96 avatar tomyangsh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.