这是indexloc提供的服务,不要输入任何密码
Skip to content

tr4m0ryp/telegram_bulk_storage_downl

Repository files navigation

Telegram Video Downloader

This repository contains scripts to download MP4 videos from Telegram links found in your CSV file.

Available Scripts

1. yt_dlp_telegram_downloader.py (Recommended)

Uses the powerful yt-dlp library for downloading videos. This is usually the most reliable option.

Usage:

/home/tr4m0ryp/Documents/.venv/bin/python yt_dlp_telegram_downloader.py

2. enhanced_telegram_downloader.py

A custom implementation that tries multiple methods to download videos from Telegram links.

Usage:

/home/tr4m0ryp/Documents/.venv/bin/python enhanced_telegram_downloader.py

3. download_telegram_videos.py

A simpler implementation using basic web scraping techniques.

Usage:

/home/tr4m0ryp/Documents/.venv/bin/python download_telegram_videos.py

Setup

The Python environment is already configured with all necessary packages:

  • requests - For HTTP requests
  • pandas - For CSV processing
  • yt-dlp - For video downloading
  • urllib3 - For URL handling

How it works

  1. The script reads the bulkpubler.csv file in the current directory
  2. Extracts all unique Telegram links (https://t.me/...)
  3. Creates a videos directory to store downloaded files
  4. Attempts to download MP4 videos from each link
  5. Names files as telegram_video_001.mp4, telegram_video_002.mp4, etc.

Expected CSV Format

The script expects a CSV file with Telegram links in the format:

"Account,Message,Media,Date,Time,Timezone"
"CryptWal,""Message text"",https://t.me/cloudstorage_public/72,08/11/2025,15:00,US/Eastern"

The script will automatically extract all https://t.me/... URLs from the file.

Output

  • Videos are saved to the videos/ directory
  • Progress is shown for each download attempt
  • A summary is displayed at the end showing successful and failed downloads

Troubleshooting

  1. "No Telegram links found" - Check that your CSV file contains valid t.me URLs
  2. Download failures - Some Telegram links may require authentication or may be private
  3. Slow downloads - The script includes delays between requests to be respectful to servers

Notes

  • The script processes unique links only (duplicates are automatically removed)
  • Downloads may fail for private channels or restricted content
  • Some links may require special authentication that these scripts don't handle

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages