Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Please see below the most popular frequently asked questions.
Loading article...
Loading faqs...
Please see below the current ongoing issues which are under investigation.
Loading issue...
Loading ongoing issues...
Plan
Free
Country
Sweden
Code
Django, Bootstrap, PresSQL
IDE
Code anywhere
Operating System
Windows 10
My Question or Issue
So I am trying to use Spotipy in my school Django project. I´ve read in Django docs that external APIs is not always supported. Before I even begin troubleshooting this does anyone Know if this is doable / or have you tried this yourself ?
So I am pretty new at coding but,
my plan is to let users come to my site and search with the Spotipy API to find songs with a specific tempo, key, location, language. I have installed URL, client ID and secret key in a virtual environment env.py as I don´t want the API key to be visible.
I have prior done extensive reading in spotify dev docs to research this and I know saw you can search for lots of characteristics in songs, key, tempo, location, popularity, liveness and many more.
And if you know of any similar Github Django repos that use the spotipy API, please link to these 🤗
Solved! Go to Solution.
Edit: The endpoint described in this reply is deprecated. More information on this page.
You can use the Get Recommendations endpoint: https://developer.spotify.com/documentation/web-api/reference/get-recommendations
How to use it with Spotipy, you can read here: https://spotipy.readthedocs.io/en/latest/#spotipy.client.Spotify.recommendations
Note: there isn't an endpoint you can use to search with location or language.
Edit: The endpoint described in this reply is deprecated. More information on this page.
You can use the Get Recommendations endpoint: https://developer.spotify.com/documentation/web-api/reference/get-recommendations
How to use it with Spotipy, you can read here: https://spotipy.readthedocs.io/en/latest/#spotipy.client.Spotify.recommendations
Note: there isn't an endpoint you can use to search with location or language.
Thank you very much, seems like simpler solution than the one I was investigating, which mostly is a good thing. Have you some example where this is written in a repo, as a newb I need to know what goes where 😂
Spotipy supports different Cache Handlers. I've found a Django Session Cache Handler in the code, linking to https://docs.djangoproject.com/en/3.2/topics/http/sessions/
Sadly, I have no knowledge of Django.
This is the end result, its not pretty and need some work still. https://bangrad.herokuapp.com/ created a django app with spotify search functionality. You have to log in with your spotify account to use the search function. Would be great to find another solution to having to refresh this access.
I read your post again and I see I made a mistake. You don't need to use the Authorization Code flow to use search functionally. In your case, you could just use Client Credential.
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…