mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2025-02-24 23:34:44 +08:00
* step1 * remove * add pdm * going * going * going * Improved `extract_code_from_instagram_url` function * Remove terabox download function Due to server-side restrictions, the Terabox download function is currently does not work as intended. * Remove unused `parse_cookie_file` function This commit removes the `parse_cookie_file` function as it is no longer required following the removal of the Terabox download function. * define abstract class * basic upload done? * db operation * db operation * db operation * db operation * db operation * fix name_pattern regex of `extract_url_and_name` function * pre-commit * pre-push * pre-push * Refactor: Change single quotes to double quotes for name_pattern regex * add more methods * rename * use self._bot_msg * download done? * update deps * add entrance * runnable * fixes * fix * record usage fix * add cookies * fix settings * hint * hint * reset * rename * formats fix * update README.md * update * rename * rename --------- Co-authored-by: Sanuja Seneviratne <66342986+SanujaNS@users.noreply.github.com>
161 lines
3.9 KiB
Markdown
161 lines
3.9 KiB
Markdown
# ytdlbot
|
||
|
||
[](https://github.com/tgbot-collection/ytdlbot/actions/workflows/builder.yaml)
|
||
|
||
**YouTube Download Bot🚀🎬⬇️**
|
||
🧰Refactor ongoing🧰
|
||
|
||
This Telegram bot allows you to download videos from YouTube and [other supported websites](#supported-websites).
|
||
|
||
# Usage
|
||
|
||
* EU🇪🇺: [https://t.me/benny_2ytdlbot](https://t.me/benny_2ytdlbot)
|
||
* Singapore🇸🇬:[https://t.me/benny_ytdlbot](https://t.me/benny_ytdlbot)
|
||
|
||
* Join Telegram Channel https://t.me/+OGRC8tp9-U9mZDZl for updates.
|
||
|
||
Just send a link directly to the bot.
|
||
|
||
# Supported websites
|
||
|
||
* YouTube 😅
|
||
* Any websites [supported by yt-dlp](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)
|
||
|
||
### Specific link downloader (Use /spdl for these links)
|
||
* Instagram (Videos, Photos, Reels, IGTV & carousel)
|
||
* Pixeldrain
|
||
* KrakenFiles
|
||
* Terabox (file/~~folders~~) (you need to add cookies txt in ytdlbot folder with name)
|
||
[terabox.txt](https://github.com/ytdl-org/youtube-dl#how-do-i-pass-cookies-to-youtube-dl).
|
||
|
||
# Features
|
||
|
||
1. fast download and upload.
|
||
2. No ads
|
||
3. download & upload progress bar
|
||
4. download quality selection
|
||
5. upload format: file, video, audio
|
||
6. cache mechanism - download once for the same video.
|
||
7. Supports multiple download engines (yt-dlp, aria2, requests).
|
||
|
||
> ## Limitations
|
||
> Due to limitations on servers and bandwidth, there are some restrictions on this free service.
|
||
> * Each user is limited to 3 free downloads every day.
|
||
|
||
# Screenshots
|
||
|
||
## Normal download
|
||
|
||

|
||
|
||
## Instagram download
|
||
|
||

|
||
|
||

|
||
|
||
# How to deploy?
|
||
|
||
This bot can be deployed on any platform that supports Python.
|
||
|
||
## Run natively on your machine
|
||
|
||
* use pdm
|
||
* pdm install
|
||
* copy .env.example to .env
|
||
* python main.py
|
||
|
||
## Docker
|
||
|
||
One line command to run the bot
|
||
|
||
```shell
|
||
docker run -e APP_ID=111 -e APP_HASH=111 -e TOKEN=370FXI bennythink/ytdlbot
|
||
```
|
||
|
||
# Complete deployment guide for docker-compose
|
||
|
||
# Command
|
||
|
||
```
|
||
start - Let's start
|
||
about - What's this bot?
|
||
help - Help
|
||
spdl - Use to download specific link downloader links
|
||
ytdl - Download video in group
|
||
aria2 - Download file using aria2
|
||
settings - Set your preference
|
||
unsub - Unsubscribe from YouTube Channel
|
||
ping - Ping the Bot
|
||
```
|
||
|
||
# Test data
|
||
|
||
<details><summary>Tap to expand</summary>
|
||
|
||
## Test video
|
||
|
||
https://www.youtube.com/watch?v=V3RtA-1b_2E
|
||
|
||
## Test Playlist
|
||
|
||
https://www.youtube.com/playlist?list=PL1Hdq7xjQCJxQnGc05gS4wzHWccvEJy0w
|
||
|
||
## Test twitter
|
||
|
||
https://twitter.com/nitori_sayaka/status/1526199729864200192
|
||
https://twitter.com/BennyThinks/status/1475836588542341124
|
||
|
||
## Test instagram
|
||
|
||
* single image: https://www.instagram.com/p/CXpxSyOrWCA/
|
||
* single video: https://www.instagram.com/p/Cah_7gnDVUW/
|
||
* reels: https://www.instagram.com/p/C0ozGsjtY0W/
|
||
* image carousel: https://www.instagram.com/p/C0ozPQ5o536/
|
||
* video and image carousel: https://www.instagram.com/p/C0ozhsVo-m8/
|
||
|
||
## Test Pixeldrain
|
||
|
||
https://pixeldrain.com/u/765ijw9i
|
||
|
||
## Test KrakenFiles
|
||
|
||
https://krakenfiles.com/view/oqmSTF0T5t/file.html
|
||
|
||
## Test TeraBox
|
||
|
||
https://terabox.com/s/1mpgNshrZVl6KuH717Hs23Q
|
||
|
||
</details>
|
||
|
||
# Donation
|
||
|
||
Found this bot useful? You can donate to support the development of this bot.
|
||
|
||
## Donation Platforms
|
||
|
||
* [Buy me a coffee](https://www.buymeacoffee.com/bennythink)
|
||
* [GitHub Sponsor](https://github.com/sponsors/BennyThink)
|
||
|
||
## Stripe
|
||
|
||
You can choose to donate via Stripe.
|
||
|
||
| USD(Card, Apple Pay and Google Pay) | CNY(Card, Apple Pay, Google Pay and Alipay) |
|
||
|--------------------------------------------------|--------------------------------------------------|
|
||
| [USD](https://buy.stripe.com/cN203sdZB98RevC3cd) | [CNY](https://buy.stripe.com/dR67vU4p13Ox73a6oq) |
|
||
|  |  |
|
||
|
||
## Cryptocurrency
|
||
|
||
TRX or USDT(TRC20)
|
||
|
||

|
||
|
||
```
|
||
TF9peZjC2FYjU4xNMPg3uP4caYLJxtXeJS
|
||
```
|
||
|
||
# License
|
||
|
||
Apache License 2.0
|