This is a Python script that allows you to download videos from X aka Twitter using the terminal. It takes a Twitter post URL as an input, extracts the highest-quality video URL, and downloads the video.
- Python 3.x
- requests library (install requirements using
pip install requests
) - bs4 library (install using
pip install beautifulsoup4
) - tqdm library (install using
pip install tqdm
)
-
Clone the repository:
git clone https://github.com/z1nc0r3/twitter-video-downloader
-
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://x.com/realmadriden/status/1743790569866821949?s=20
- This script relies on the external website twitsave.com to retrieve the video URL for downloading. It uses the API provided by twitsave.com to fetch the video details.
- Please ensure you have a stable internet connection and access to twitsave.com for the script to work properly.
- Me and this project are not affiliated with twitsave.com. Please review and comply with the terms and conditions of twitsave.com/terms when using their services through this script.