This script allows you to download videos from X (formerly Twitter) and store them in your local /Videos
directory. It uses yt-dlp
to fetch and download videos.
- Fetch video details (title, uploader, duration, upload date, view count)
- Download videos directly into the user's
/Videos
directory - Easy-to-use terminal-based interface
- Open the terminal and update your package manager:
sudo apt update && sudo apt upgrade
- Install
yt-dlp
for downloading videos:sudo apt install yt-dlp
- Install Python (if not already installed):
sudo apt install python3
- Download and install Python from https://www.python.org/downloads/.
- Add Python to your system environment variables during installation.
- Open
Command Prompt
as Administrator and installyt-dlp
:pip install yt-dlp
- Open the terminal.
- Navigate to the directory containing the
x.py
script:cd /path/to/script
- Run the script:
python3 x.py
- Open
Command Prompt
orPowerShell
. - Navigate to the directory containing the script:
cd C:\path\to\script
- Execute the script:
python x.py
- Enter the X video URL when prompted.
- The script will fetch and display details such as:
- Title
- Uploader
- Duration
- Upload Date
- View Count
- The video will be downloaded to the
/Videos
directory. - If the directory does not exist, it will be created automatically.
<==--- X | Video | Downloader ---==>
@EIRSVi | @kmjBuCa
This script can download X videos and save them in the /Videos directory.
Enter the X video URL: https://x.com/example-video
Video Details:
----------------------------------------
Title : Example Video Title
Uploader : User123
Duration : 3:45
Upload Date : 2023-01-01
View Count : 500,000
----------------------------------------
Video downloaded successfully!
Video saved in: /home/user/Videos/
Ensure you have installed yt-dlp
. On Linux, use:
sudo apt install yt-dlp
On Windows, use:
pip install yt-dlp
If the video does not download, ensure the video URL is valid and accessible. Check for errors in the terminal for more information.
This script is intended for personal use only. Ensure compliance with X's terms of service when downloading videos.