An open API service indexing awesome lists of open source software.

https://github.com/bengabp/m3dlp

yt-dlp inspired media downloader
https://github.com/bengabp/m3dlp

dramatiq media-downloader python telegram-bot yt-dlp

Last synced: about 1 month ago
JSON representation

yt-dlp inspired media downloader

Awesome Lists containing this project

README

          


Typing SVG



opensource yt-dlp inspired media downloader Telegram bot



Telegram Chat

# Setting up
Run a redis container locally
```bash
docker run -d --name redis -p 6379:6379 redis:latest
```
Clone this repository and install the dependencies using uv
```bash
uv sync
```

Running a worker
This project uses dramatiq to queue download tasks so as to prevent too many tasks from being processed at once
```bash
uv run dramatiq-gevent --queues=media_download m3dlp.tasks
```

Running with docker compose
Ive added a compose file to make everything easier.
Just add a .env file at the root directory and make sure you have your
`TELEGRAM_BOT_TOKEN` set, then fire up the bot using this command

```bash
docker compose up -d
```
The compose file includes
- redis
- broker
- tgbot