Skip to main content

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-dlp as 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 handle yt-dlp)
  • Shrink container image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vidfetch_bot-0.4.4.tar.gz (134.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vidfetch_bot-0.4.4-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

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

Hashes for vidfetch_bot-0.4.4.tar.gz
Algorithm Hash digest
SHA256 5e5fd7a1b7a6e5ca28fb92d032ad85c67bffc31a41fde15eb10efe02d85ffa7b
MD5 2af7fc6fe89fc08998a35b585d4b2199
BLAKE2b-256 6831d8be32e24138097de0c1bf2afe7740f45f9a666dddd752b9d0085c58beb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for vidfetch_bot-0.4.4.tar.gz:

Publisher: workflow.yaml on arthurlt/vidfetch_bot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for vidfetch_bot-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd903f1bc5808499899b7b1e0c9ad3c795a10b72c353dc08c66201d5ad741960
MD5 e779656eac4b22bec019aa8d050a7fc3
BLAKE2b-256 0b081e3fdcfb056b58aa0e80f19fbbac0c5f605bf8d71434916256cbdfded3cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for vidfetch_bot-0.4.4-py3-none-any.whl:

Publisher: workflow.yaml on arthurlt/vidfetch_bot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page