Comments (5)
How often are you using this endpoint? Maybe caching might be helpful.
from spotipy.
And btw, you can actually monitor the usage of the API endpoints in the Spotify dashboard.
from spotipy.
You have probably hit a rate limit. urllib will wait until the limit is gone, but for some reason this can take quite a long time.
If you want to get an error message instead, just do the following:
sp = spotipy.Spotify(
retries=0,
...
)
from spotipy.
You are right: I get a 429 error with the retries=0 option. Not sure why though: I'm asking for one playlist only, and the api is answering to any other request, besides playlist. Thanks a lot for the help!
from spotipy.
thanks for your feedbacks - I'll optimize my script to request by batch and make it more efficient!
from spotipy.
Related Issues (20)
- Improve 'util.py' with function docstrings HOT 4
- API Reference Refers to Deprecated Methods HOT 2
- Update Directions In TUTORIAL.md
- Documentation for version 2.23.0 not available HOT 8
- Current 2.23.0 install from pip doesn't include latest code HOT 4
- Update Directions and Content of CONTRIBUTING.md HOT 1
- Backend terminal shows: " Enter the URL you were redirected to: " HOT 5
- Adding a custom date range for users top tracks and top artist HOT 1
- Account Creation Timestamp field HOT 2
- Any way to play a playlist? Without premium if possible. HOT 1
- Podcast transcript HOT 1
- How spotipy have to be setted for deploying? HOT 1
- How do I start playback on the command line/headless? HOT 6
- Invalidate cache if the credentials change (or the credentials become invalid) HOT 3
- An error occurred: can only concatenate tuple (not "str") to tuple when using Spotipy functions HOT 7
- Move linting/code style checks to a separate test HOT 2
- Playlist longer than 100 items fails to iterate with sample code HOT 4
- Fails to query audio features for LOCAL track files that aren't available HOT 6
- Running .artist() & .album_tracks() methods are stuck running & won't execute HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotipy.