Skip to main content

This module creates a mashup of songs of your favorite singer with a few steps from the command line.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mashup_yt-0.0.3.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file mashup_yt-0.0.3.tar.gz.

File metadata

  • Download URL: mashup_yt-0.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for mashup_yt-0.0.3.tar.gz
Algorithm Hash digest
SHA256 186a1341921cbdef2c1e78c8388ca139d351e88d1b1f798f32b2260f476e01e9
MD5 1a8b1bdc789388969ff204a673c7f6b2
BLAKE2b-256 1d8b0d5e8ca9ed46449b500af6c4a34530ff66629adc06bead34bcfc0bbeef3e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page