This bot watches messages for URLs then passes those to yt-dlp for processing and download. It then replies to the message containing the URL with the video embedded.
Project description
VidFetch_Bot
Are you sick of your friends sending you links to TikTok, Instagram, and YouTube only to have to navigate the maze of app download and account signup redirects and popups?
Just add this bot to your group's Telegram meme chat. (Or if they're using a better messaging service just DM the bot the links.)
How to run
Examples of how to run the bot
Docker
TODO
Quadlet
If the system you're wanting to run on has Podman>=5 installed you can use Quadlets. Create a file vidfetch-bot.container and place it in /etc/containers/systemd/.
[Unit]
Description=A Telegram bot
[Container]
Image=ghcr.io/arthurlt/vidfetch_bot:latest
Environment="BOT_TOKEN=<INSERT_YOUR_BOT_TOKEN_HERE>"
Pull=newer
#AutoUpdate=registry
[Service]
Restart=always
TimeoutStartSec=300
[Install]
WantedBy=multi-user.target default.target
Kubernetes
TODO
systemd
TODO
Develop
Supply your bot's API token via environment variable BOT_TOKEN.
TODO:
- Rewrite to use
yt-dlpas library - Move Docker image build/publish to
workflow.yaml - Improve README
- Add/improve docstrings
- Add (more) unit tests
- Improve CI vs CD workflows
- Enable 'strict' checking for
pyright(unsure how to handleyt-dlp) - Shrink container image
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vidfetch_bot-0.4.4.tar.gz.
File metadata
- Download URL: vidfetch_bot-0.4.4.tar.gz
- Upload date:
- Size: 134.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e5fd7a1b7a6e5ca28fb92d032ad85c67bffc31a41fde15eb10efe02d85ffa7b
|
|
| MD5 |
2af7fc6fe89fc08998a35b585d4b2199
|
|
| BLAKE2b-256 |
6831d8be32e24138097de0c1bf2afe7740f45f9a666dddd752b9d0085c58beb8
|
Provenance
The following attestation bundles were made for vidfetch_bot-0.4.4.tar.gz:
Publisher:
workflow.yaml on arthurlt/vidfetch_bot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vidfetch_bot-0.4.4.tar.gz -
Subject digest:
5e5fd7a1b7a6e5ca28fb92d032ad85c67bffc31a41fde15eb10efe02d85ffa7b - Sigstore transparency entry: 264942685
- Sigstore integration time:
-
Permalink:
arthurlt/vidfetch_bot@90d287a199a84b2c829733fc2188024c9305f4d8 -
Branch / Tag:
refs/tags/v0.4.4 - Owner: https://github.com/arthurlt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yaml@90d287a199a84b2c829733fc2188024c9305f4d8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file vidfetch_bot-0.4.4-py3-none-any.whl.
File metadata
- Download URL: vidfetch_bot-0.4.4-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd903f1bc5808499899b7b1e0c9ad3c795a10b72c353dc08c66201d5ad741960
|
|
| MD5 |
e779656eac4b22bec019aa8d050a7fc3
|
|
| BLAKE2b-256 |
0b081e3fdcfb056b58aa0e80f19fbbac0c5f605bf8d71434916256cbdfded3cd
|
Provenance
The following attestation bundles were made for vidfetch_bot-0.4.4-py3-none-any.whl:
Publisher:
workflow.yaml on arthurlt/vidfetch_bot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vidfetch_bot-0.4.4-py3-none-any.whl -
Subject digest:
dd903f1bc5808499899b7b1e0c9ad3c795a10b72c353dc08c66201d5ad741960 - Sigstore transparency entry: 264942688
- Sigstore integration time:
-
Permalink:
arthurlt/vidfetch_bot@90d287a199a84b2c829733fc2188024c9305f4d8 -
Branch / Tag:
refs/tags/v0.4.4 - Owner: https://github.com/arthurlt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yaml@90d287a199a84b2c829733fc2188024c9305f4d8 -
Trigger Event:
push
-
Statement type: