Giter Club home page Giter Club logo

savify's Introduction

Savify ๐ŸŽถ

Not a Spotify Premium user? Not a problem! With Savify, all you need is to provide a Spotify song URL and download the track with just one click.

Try Savify!

How it works:

This web app makes use of 2 official APIs: Spotify Web API and the YouTube Data API to fetch and retrieve music data. When the user enters a valid Spotify track URL, the program extracts its unique Spotify ID then makes the Spotify API call to retrieve its name and list of artists from the response, in the form of a dictionary, track_info. This dictionary is crucial for this app as its contents are used practically for everything.

The first and most important use of track_info is to actually retrieve an audio buffer of said track. Since Spotify provided us with the song title and artist names, the app then searches for the song on YouTube by using the YouTube Data API with the following search query: '[Artist names] - [Song name] (Audio)'

From the response, the app extracts the first search result's youtube video ID and constructs a Pytube YouTube object. Audio stream is then extracted and downloaded as an mp3 file.

Limitations:

  • Since the searching/sraping is being done strictly with the YouTube Web API, its daily quota restricts the amount of songs that can be found (hence downloaded) from YouTube.
  • The search query '[Artist names] - [Song name] (Audio)' might not work well for classical pieces that have a different way of being named (e.g: "10 Preludes , Op. 23: No.5 in G Minor: Allegro" by Sergei Rachmaninof -- Beautiful piece btw, you should absolutely have a listen! )

savify's People

Contributors

galikechichian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.