Git Product home page Git Product logo

Comments (4)

KCNilssen avatar KCNilssen commented on August 30, 2024 1

pferreira8 and mlwilliams217, Apologies for the delay, some things came up IRL but everything should be working and published. Update and give it a go

from python-mlb-statsapi.

mlwilliams217 avatar mlwilliams217 commented on August 30, 2024

Ran into the same problem. Just to help debug, I'm narrowed down the exact date where the error occurs, which is 2024-05-14. This works

  # Initialize API object
  mlb = mlbstatsapi.Mlb()

  # Get games
  all_games = mlb.get_scheduled_games_by_date(
      start_date="2024-05-01", end_date=""2024-05-13", gameTypes="R"
  )

And this also works

  # Initialize API object
  mlb = mlbstatsapi.Mlb()

  # Get games
  all_games = mlb.get_scheduled_games_by_date(
      start_date="2024-05-15", end_date=""2024-05-24", gameTypes="R"
  )

However passing a date range that includes "2024-05-14" in it will result in the error referred to above. I assume it's from some sort of weird data for a game that day (I see there's a postponed game then).

from python-mlb-statsapi.

KCNilssen avatar KCNilssen commented on August 30, 2024

Looks like the MLB API was updated recently. Thats why it's only throwing that "missing required positional argument' TypeError after a certain date!

I'll get on fixing that as soon as I can. Thanks for the heads up guys!

from python-mlb-statsapi.

pferreira8 avatar pferreira8 commented on August 30, 2024

pferreira8 and mlwilliams217, Apologies for the delay, some things came up IRL but everything should be working and published. Update and give it a go

great to hear!

from python-mlb-statsapi.

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.