2017-07-23 10:05:42 +02:00
|
|
|
# telegram-bot-youtube-downloader
|
|
|
|
|
|
|
|
Change TOKEN with your token
|
|
|
|
|
2017-07-23 10:28:08 +02:00
|
|
|
Usage:
|
|
|
|
- Send link of video (@vid inline is comfortable)
|
|
|
|
- The bot will download the video and send it
|
2017-08-06 15:24:35 +02:00
|
|
|
- If the video is larger than 50MB, it is split into smaller parts,
|
2017-08-06 15:29:28 +02:00
|
|
|
which then need to be concatenated (in linux: cat vid.mp4* > vid.mp4)
|
2017-07-23 10:28:08 +02:00
|
|
|
|
2017-07-23 10:05:42 +02:00
|
|
|
This script require:
|
|
|
|
- Python3 interpreter
|
|
|
|
- Telegram python api https://github.com/python-telegram-bot/python-telegram-bot
|
2017-08-07 22:24:00 +02:00
|
|
|
- youtube-dl https://github.com/rg3/youtube-dl/ (installed on the machine)
|
2017-07-23 10:28:08 +02:00
|
|
|
|
|
|
|
Tips:
|
|
|
|
- Use PythonAnyWhere for hosting the bot https://www.pythonanywhere.com
|
2017-07-23 10:53:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## TODO
|
2017-08-07 22:24:00 +02:00
|
|
|
- Improve space-requirement of hard-split (is 2 times size_of_video, the goal is size_of_video + 49MB)
|
2017-08-06 15:24:35 +02:00
|
|
|
- Improve soft-split of the videos
|
2017-08-07 22:24:00 +02:00
|
|
|
- PEP8
|
|
|
|
- Remove duplicates of resolution
|
2017-08-08 09:03:06 +02:00
|
|
|
- Add geo-bypass feature
|
|
|
|
- Add playlist download feature
|
|
|
|
- match title with regex
|
|
|
|
- from video x to video y
|
|
|
|
- only video uploaded before or after date x
|
|
|
|
- max-views or min-views
|
|
|
|
- Subtitle download
|