Skip to content

EIRSVi/0xX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

X Video Downloader Guide

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.


Features

  • 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

Prerequisites

Linux

  1. Open the terminal and update your package manager:
    sudo apt update && sudo apt upgrade
  2. Install yt-dlp for downloading videos:
    sudo apt install yt-dlp
  3. Install Python (if not already installed):
    sudo apt install python3

Windows

  1. Download and install Python from https://www.python.org/downloads/.
  2. Add Python to your system environment variables during installation.
  3. Open Command Prompt as Administrator and install yt-dlp:
    pip install yt-dlp

How to Run the Script

Linux

  1. Open the terminal.
  2. Navigate to the directory containing the x.py script:
    cd /path/to/script
  3. Run the script:
    python3 x.py

Windows

  1. Open Command Prompt or PowerShell.
  2. Navigate to the directory containing the script:
    cd C:\path\to\script
  3. Execute the script:
    python x.py

Usage Guide

  1. Enter the X video URL when prompted.
  2. The script will fetch and display details such as:
    • Title
    • Uploader
    • Duration
    • Upload Date
    • View Count
  3. The video will be downloaded to the /Videos directory.
  4. If the directory does not exist, it will be created automatically.

Credits


Example Output

<==--- 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/

Troubleshooting

Missing yt-dlp

Ensure you have installed yt-dlp. On Linux, use:

sudo apt install yt-dlp

On Windows, use:

pip install yt-dlp

Video Download Failure

If the video does not download, ensure the video URL is valid and accessible. Check for errors in the terminal for more information.


Disclaimer

This script is intended for personal use only. Ensure compliance with X's terms of service when downloading videos.

About

A Python script to download @x as video (MP4)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages