Skip to content

Morbid1134/YouTube-Audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

YouTube Playlist Downloader

This script allows you to download all the videos from a YouTube playlist and convert them to MP3 format.

Requirements

Installation

You can install the required dependencies using pip:

pip install pytube

Usage

  1. Run the script by executing the following command in your terminal:
python audio.py [-p PLAYLIST_INPUT]
  • Optional Arguments:
    • -p, --playlist PLAYLIST_INPUT: URL or ID of the YouTube playlist you want to download.
  1. You can provide either the full URL of the playlist or just the playlist ID. For example:

    python audio.py -p https://www.youtube.com/playlist?list=example_hash_ID
    

    or

    python audio.py -p example_hash_ID
    
  2. If you don't provide the -p flag, the script will prompt you to enter the URL or ID of the YouTube playlist.

Colored Output

The script provides colored output to distinguish between different types of messages:

  • [INFO]: Informational messages displayed in green.
  • [WARNING]: Warning messages displayed in yellow.
  • [ERROR]: Error messages displayed in red.

Error Handling

The script includes error handling to deal with various potential issues during the download and conversion process. Specific error messages are provided to help diagnose any problems that may occur.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages