https://github.com/eirsvi/0xyt
A Python script to download @YouTube videos or playlists as video (MP4) or audio (MP3).
https://github.com/eirsvi/0xyt
video youtube youtubedownloader yt
Last synced: 7 months ago
JSON representation
A Python script to download @YouTube videos or playlists as video (MP4) or audio (MP3).
- Host: GitHub
- URL: https://github.com/eirsvi/0xyt
- Owner: EIRSVi
- Created: 2025-02-01T09:20:19.000Z (9 months ago)
- Default Branch: docs
- Last Pushed: 2025-02-01T10:05:52.000Z (9 months ago)
- Last Synced: 2025-02-09T13:15:24.568Z (8 months ago)
- Topics: video, youtube, youtubedownloader, yt
- Language: Python
- Homepage: https://youtu.be/
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YouTube Downloader π₯πΆ
Welcome to the **YouTube Downloader**! This script helps you download YouTube videos or audio easily. You can choose to download videos in MP4 format or extract audio in MP3 format. Itβs simple to use and works on both **Linux** and **Windows**.
---
## What the Script Can Do β
1. **Download Videos**:
- Save YouTube videos in MP4 format.
- Videos are saved in the `Videos` folder (located in your home directory).2. **Download Audio**:
- Extract audio from YouTube videos and save it as MP3.
- Audio files are saved in the `Music` folder (located in your home directory).3. **Download Playlists**:
- Download entire YouTube playlists.
- Videos or audio from playlists are saved in a folder named after the playlist.4. **Organized Downloads**:
- Single videos/audio are saved directly in the `Videos` or `Music` folder.
- Playlists are saved in a subfolder inside the `Videos` or `Music` folder.---
## What You Need to Use the Script π
1. **Python 3.x**:
- Make sure Python is installed on your computer.
- Download it from [python.org](https://www.python.org/downloads/) if you donβt have it.2. **`yt-dlp` Library**:
- This is the tool the script uses to download videos and audio.
- Install it by running this command in your terminal or command prompt:
```bash
pip install yt-dlp
```3. **The Script (`yt.py`)**:
- Download the script and save it to your computer.---
## How to Use the Script π
1. **Open Terminal or Command Prompt**:
- On **Linux**: Open the terminal.
- On **Windows**: Open Command Prompt or PowerShell.2. **Run the Script**:
- Navigate to the folder where the script is saved.
- Run the script by typing:
```bash
python yt.py
```3. **Follow the Prompts**:
- Enter the YouTube video or playlist URL when asked.
- Choose whether you want to download **Video** or **Audio**.4. **Wait for the Download**:
- The script will download the file and save it in the correct folder:
- Videos: Saved in `~/Videos` (or `C:\Users\YourUsername\Videos` on Windows).
- Audio: Saved in `~/Music` (or `C:\Users\YourUsername\Music` on Windows).
- For playlists, a folder will be created with the playlist name.---
## Example Usage π
1. Run the script:
```bash
python yt.py
```2. Enter the YouTube URL:
```
Enter the YouTube video or playlist URL: https://www.youtube.com/watch?v=example
```3. Choose download type:
```
Download as VIDEO or AUDIO? (Enter 'video' or 'audio'): video
```4. The file will be saved in the `Videos` or `Music` folder.
---
## Notes π
- **Internet Connection**: A stable internet connection is required for smooth downloads.
- **Folder Creation**: If the `Videos` or `Music` folders donβt exist, the script will create them automatically.
- **Playlist Support**: Playlists are downloaded into a folder named after the playlist title.---
## Credits π
- **Developed by**: [@EIRSVi](https://github.com/EIRSVi) and [@kmjBuCa](https://github.com/kmjBuCa).
- **License**: This project is open-source and free to use.