This repository contains scripts to download MP4 videos from Telegram links found in your CSV file.
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.pyA custom implementation that tries multiple methods to download videos from Telegram links.
Usage:
/home/tr4m0ryp/Documents/.venv/bin/python enhanced_telegram_downloader.pyA simpler implementation using basic web scraping techniques.
Usage:
/home/tr4m0ryp/Documents/.venv/bin/python download_telegram_videos.pyThe Python environment is already configured with all necessary packages:
requests- For HTTP requestspandas- For CSV processingyt-dlp- For video downloadingurllib3- For URL handling
- The script reads the
bulkpubler.csvfile in the current directory - Extracts all unique Telegram links (https://t.me/...)
- Creates a
videosdirectory to store downloaded files - Attempts to download MP4 videos from each link
- Names files as
telegram_video_001.mp4,telegram_video_002.mp4, etc.
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.
- 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
- "No Telegram links found" - Check that your CSV file contains valid t.me URLs
- Download failures - Some Telegram links may require authentication or may be private
- Slow downloads - The script includes delays between requests to be respectful to servers
- 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