Skip to content

This project is a command-line tool that allows users to download multiple music videos from YouTube, convert them to audio, trim them to a specified duration, and merge them into a single audio file. It also includes a feature to send the final audio file to a specified email address.

Notifications You must be signed in to change notification settings

deepankarvarma/Mashup-Generator-and-Emailing---Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mashup Generator From Youtube Video And Emailing

This is a command-line tool that helps you to download multiple music videos from YouTube, convert them to audio, trim them to a specified duration, and merge them into a single audio file.

Getting Started

Prerequisites

  1. Python 3.x
  2. Pytube (pip install pytube)
  3. MoviePy (pip install moviepy)
  4. Requests (pip install requests)

Installation

  1. Clone the repository: git clone https://github.com/username/repo.git
  2. Change directory to the project: cd youtube-music-downloader
  3. Install the required dependencies: pip install -r requirements.txt

Usage

Run the following command to start downloading music videos from YouTube:
python youtube-music-downloader.py <singer-name> <seconds> <number-of-songs> <output-filename>
singer-name: Name of the singer or band.
seconds: Duration in seconds for the final audio file.
number-of-songs: Number of songs to download and merge.
output-filename: Name of the final audio file.

Example: python youtube-music-downloader.py "Ed Sheeran" 60 5 result.mp3
This command will download 5 music videos of Ed Sheeran from YouTube, convert them to audio, trim them to 60 seconds each, merge them into a single audio file, and save it as "result.mp3".

Sending Email

The tool also includes an email feature that sends the final audio file to a specified email address. To use this feature, you need to provide your email address and the Gmail App password in the code.

About

This project is a command-line tool that allows users to download multiple music videos from YouTube, convert them to audio, trim them to a specified duration, and merge them into a single audio file. It also includes a feature to send the final audio file to a specified email address.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages