Code Monkey home page Code Monkey logo

recme's Introduction

RecMe

A Python script that retrieves customizable music recommendations provided by Spotify-Api to your Spotify Account.

How does it works

  1. Logs on to your Spotify account.
  2. Recommends tracks based on provided seed artists, tracks, and genres.
  3. Adds them to your playlist of choice.

Before you use it:

  • Login to Spotify Developer Dashboard and create a new app to obtain the Client ID and Client Secret. Add these to CLIENT_ID and CLIENT_SECRET in the code. After this, click edit settings of the newly created app and add an URI to Redirect URIs and save, if you don't have a URI in mind, just use https://www.google.com/.

  • Spotipy : Spotipy is a lightweight Python library for the Spotify Web API. With Spotipy you get full access to all of the music data provided by the Spotify platform, runpip install requirements.txt.

If you want to use it

  1. Clone repository.
  2. run python3 RecMe.py

First time run

Authorize application

While your first run you are asked to authorize RecMe in your Spotify account so it can access and modify your playlists, and read your top artists and tracks.

The prompt will look like this:

            User authentication requires interaction with your
            web browser. Once you enter your credentials and
            give authorization, you will be redirected to
            a url.  Paste that url you were directed to to
            complete the authorization.


Opened https://accounts.spotify.com/authorize?redirect_uri=<your_redirect_uri>&response_type=code&client_id=<client_id>&scope=user-follow-read in your browser


Enter the URL you were redirected to:

Open the link in your browser, authorize the application and you will be redirected to the redirect URI. Copy the URL and paste it into the terminal. This will generate the .cache_<your_user_name> file in the project folder. The next time you run the script everything works out as you'd wish for.

recme's People

Contributors

thekermitfrog avatar

Watchers

 avatar  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.