Skip to content
/ 0xYT Public

A Python script to download @youtube videos or playlists as video (MP4) or audio (MP3).

Notifications You must be signed in to change notification settings

EIRSVi/0xYT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

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 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:
      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:
      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:

    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 and @kmjBuCa.
  • License: This project is open-source and free to use.

About

A Python script to download @youtube videos or playlists as video (MP4) or audio (MP3).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages