Giter VIP home page Giter VIP logo

Comments (3)

swar avatar swar commented on May 22, 2024

@Cellular-

https://stats.nba.com/stats/playergamelog?DateFrom=12/25/2018&DateTo=12/25/2018&LeagueID=&PlayerID=2544&Season=2018-19&SeasonType=Regular+Season

This seems to be working for me. Depending on the error, you may need to URL encode the slashes to %2F.

I was able to find this by looking at the Advanced Filter for a player.
https://stats.nba.com/player/2544/boxscores-traditional/?Season=2018-19&SeasonType=Regular%20Season&DateFrom=12%2F25%2F2018&DateTo=12%2F25%2F2018

from nba_api.

Cellular- avatar Cellular- commented on May 22, 2024

Using MM/DD/YYYY worked. Didn't need to encode slashes either. Not sure why I was getting error but thanks alot. I think adding the default format, MM/DD/YYYY, in the parameter documentation would be helpful for new users.

from nba_api.

swar avatar swar commented on May 22, 2024

The only issue with this is that all of the parameter and endpoint documentation is auto-generated. In addition, we would need to confirm if all DateTo and DateFrom fields are all in that format. The NBA API looks like it was slowly built overtime with varying designs, so MM/DD/YYYY might not be valid for every single endpoint with the date fields.

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.