Spaces:
No application file
No application file
File size: 1,507 Bytes
00193cc 3cdbfb4 7742d70 8c44a7e 7742d70 8c44a7e 7742d70 8ea4b76 7742d70 8c44a7e bda85d3 8ea4b76 bda85d3 e29cd81 9a0ebd9 8ea4b76 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
---
title: The Collector
emoji: 🔥
colorFrom: gray
colorTo: red
sdk: gradio
sdkVersion: "5.31.0"
app_file: app.py
pinned: true
license: mit
---
# TheCollector
A Telegram Bot that downloads videos or video segments using yt-dlp.
Usage:
1. Install necessary libraries:
pip install python-telegram-bot yt-dlp
2. Get a Bot Token from BotFather on Telegram.
3. Replace "YOUR_TELEGRAM_BOT_TOKEN" with your actual token.
4. Run the script: python your_script_name.py
5. Send commands to your bot on Telegram:
/download <video_url>
/download <video_url> [START_TIME]
/download <video_url> [START_TIME] [END_TIME]
(Time format: HH:MM:SS or MM:SS)
Notes:
- Telegram has a file size limit for bots sending files (usually 50MB) but this works around that.
This bot attempts to download a suitable format but might fail for extremely large videos.
- Ensure ffmpeg is installed if yt-dlp requires it for merging formats or conversions.
(yt-dlp often bundles it or can use a system-wide ffmpeg).
Tasks:
- Deployment
- Set up docker first. ✅
- Deploy to the cloud
- Switch to using a subprocess ✅
- Test to see which argument for constraining size works for youtube videos. 🗑️
- Fix name extraction from file info
- get around size limit (https://stackoverflow.com/a/77654947) ✅
- confirm that timestamped URLs do not break the bot
- integrate [cobalt](https://github.com/imputnet/cobalt) as a fall back for short video download. Maybe replax instagram download altogether with it. |