This is a Python script that allows you to download videos from Twitter. It takes a Twitter video URL as input, extracts the video ID, and downloads the video using the URL with the highest bitrate.
- Python 3.x
- requests library (install using
pip install requests
) - tqdm library (install using
pip install tqdm
)
-
Clone the repository:
git clone https://github.com/your-username/twitter-video-downloader.git
-
Navigate to the project directory:
cd twitter-video-downloader
-
Install the required packages
pip install -r requirements.txt
-
Run the script with the video URL as the argument
python twitter_downloader.py {video url} eg :- python twitter_downloader.py https://twitter.com/TrollFootball/status/1679583964770754560?s=20
- This script relies on the external website TwitterVid.com to retrieve the video URL for downloading. It uses the API provided by TwitterVid.com to fetch the video details.
- Please ensure you have a stable internet connection and access to TwitterVid.com for the script to work properly.
- Me and this project are not affiliated with TwitterVid.com. Please review and comply with the terms and conditions of TwitterVid.com when using their services through this script.