Metadata-Version: 2.1
Name: mashup_yt
Version: 0.0.3
Summary: This module creates a mashup of songs of your favorite singer with a few steps from the command line.
Home-page: https://github.com/Chitru4/mashup_yt
Download-URL: https://github.com/Chitru4/mashup_yt/archive/refs/tags/mashup_yt.tar.gz
Author: Chitraksh Kumar
Author-email: chitraksh24@gmail.com
License: MIT
Keywords: MASHUP,YOUTUBE,PROJECT,MUSIC,MP3
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Mashup Module by Chitraksh Kumar

## Description
This module creates a mashup of songs of your favorite singer with a few steps from the command line.
Select the singer, the number of songs and there durations and you will get a mashup of their most popular hits.
The app might take a bit long to run due to downloading of multiple files from the net.

## Requirements
``` 
pip install pytube
pip install pydub
pip install requests
pip install flask
```

## Install
Download the code using pip
```
pip install mashup_yt
```

## Running the code
Before running code make sure to add your smtp google account as well as it's app password.
The password would be a 16 character string.
This step is not needed if you intend to use only the cli interface and not the web app.
```
mashup_yt -p example@gmail.com secret_password
```
```
mashup_yt "Marshmello" 20 20 out.mp3
mashup_yt -w
```

## Using the web app
A sendgrid account and api key is necessary to run the webapp as intended.
Navigate to the webapp folder and change email and api according to your needs in app.py.
After that enter the below command on the terminal.
```
set FLASK_APP=app.py  
flask run
mashup_yt -w
```

The app should run and provide you with a link which can be opened to run the mashup webapp.
Enter the required entries and the given email id should recieve a zip file containing the desired audio file.
Errors most likely might occur due to wrong from email mentioned in app.py or incorrect api key.
Make sure mashup.py is in the same folder as app.py

webpage can be changed by editing the php code in templates named index.html

The webapp can be hosted online on a platform like heroku or pythonanywhere.com for free.

## My Website
[Mashup-yt](http://chitru4.pythonanywhere.com/)
