Git Product home page Git Product logo

emotion-based-music-recommendation's People

Contributors

bauff avatar tamargoadam avatar timothyfhinds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

emotion-based-music-recommendation's Issues

spotify current_user_recently_played()

We need more songs to analyze while performing music recommendations. The current_user_recently_played() function could provide us with a lot more songs to include in our recommendation algorithm. Not only could we get a user's recently played songs, but we can get the artists from those songs and get their top tracks, and their related artists and their top tracks.

This is a link to the function's documentation from Spotipy:
https://spotipy.readthedocs.io/en/2.9.0/#spotipy.client.Spotify.current_user_recently_played
and Spotify:
https://developer.spotify.com/documentation/web-api/reference/player/get-recently-played/

Within Spotify.py:
I wrote the functions get_recent_tracks() and get_recent_artists()
Finally, within get_all_songs() within Spotify.py I am trying to call these functions.

When attempting to call get_recent_tracks(), this is the error generated:
ERROR:spotipy.client:HTTP Error for GET to https://api.spotify.com/v1/me/player/recently-played returned 403 due to Insufficient client scope

After checking google, the solution was to include "user-library-read" within the scope, which has already been done within the auth card route.

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.