Git Product home page Git Product logo

Comments (7)

jaypeedevlin avatar jaypeedevlin commented on May 18, 2024 1

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.

swar avatar swar commented on May 18, 2024

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.

xeacott avatar xeacott commented on May 18, 2024

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.

xeacott avatar xeacott commented on May 18, 2024

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.

swar avatar swar commented on May 18, 2024

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.

xeacott avatar xeacott commented on May 18, 2024

Also, this thread may be closed at your discretion @swar

from nba_api.

swar avatar swar commented on May 18, 2024

@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)

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.