Comments (7)
Jumping into this topic, one of the things I loved about nba_py when using it was that it used requests-cache which meant that it avoiding hitting the endpoints repeatedly when you were optimizing code etc.
I wonder if that might be an easy drop-in which would mitigate some of the cases (and be generally more respectful to the underlying API)
from nba_api.
I'm sure people will have varying answers to this question. Personally, I wouldn't want to flood any website with many requests. I don't want to abuse something that's publicly available, but I do think there are ways around it while maintaining respect for the website. You could make sure you're pausing between requests and caching the information so that you don't have to make multiple requests for the same information.
Depending on how many requests you plan on submitting, just be mindful that they can ban your IP or even a group of IPs if they are all coming from the same location, such as a university.
from nba_api.
Understood - Beyond the scope of the 'requirements' i have to fill, I will probably build around this so it doesn't become an issue. Thank you for the response.
from nba_api.
I do agree with Jay, respecting public APIs is important and hopefully that is something that can be implemented. There ought to be a package that is the gold standard...
from nba_api.
I am going to add an issue per @jaypeedevlin so that we can look into adding in requests-cache functionality as that'll be a good idea and a replacement to DEBUG_STORAGE
in debug.py
from nba_api.
Also, this thread may be closed at your discretion @swar
from nba_api.
@xeacott I'll leave it open until the end of the month in case anyone else has anything to add. Thank you!
from nba_api.
Related Issues (20)
- [Bug]: Road Games not returning from cumestatsplayergames when using "location_nulalble" parameter HOT 1
- works on local flask server but not on GCP? HOT 3
- Any way to obtain the score that player has in live match? HOT 1
- Slack HOT 4
- Starting Lineups HOT 2
- [Bug]: Potential Assists HOT 1
- [Bug]: Class - PlayerPositionAbbreviationNullable in nba_api/docs/nba_api/stats/library/paramters.md is not working HOT 2
- [Bug]: Why are there decimals in fields that should not have decimals? For example, opponent points. HOT 4
- How do I pull a certain player game splits/stats for the last "n" of games? HOT 1
- Play by Play not starting from 0-0 for these Games
- [Bug]: Name Zhou Qi has no first name in the dictionar
- Game_id HOT 2
- [Bug]: playbyplayv3 throws an error when running get_dat_sets() within get_request HOT 1
- [Bug]: teams.py shows the Golden State Warrior's city name as "Golden State" HOT 1
- No response trying to get the data I need HOT 3
- [Bug]: BoxScoreMiscV3 and related classes and Start_Period and End_Period
- [Feature Request] WNBA players & teams in static data HOT 3
- Team season advanced statistics
- [Bug]: Incorrect Data for Team Rankings
- [Bug]: How to get the list of in season tournament games?
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 nba_api.