Git Product home page Git Product logo

Comments (4)

toddrob99 avatar toddrob99 commented on July 26, 2024

Thank you for pointing this out. I should not assume the linescore node is present in all cases, so I am checking in a fix for v0.0.8. I will check the 4/8/18 postponed game to see what's going on there too.

from mlb-statsapi.

toddrob99 avatar toddrob99 commented on July 26, 2024

The game on 4/8/18 is failing because there was no probable pitcher listed for the home team. See #6.

from mlb-statsapi.

toddrob99 avatar toddrob99 commented on July 26, 2024
>>> import statsapi
>>> statsapi.__version__
'0.0.8'
>>> statsapi.schedule(team=136,start_date='05/11/2018')
[{'game_id': 529982, 'game_datetime': '2018-05-11T23:10:00Z', 'game_date': '2018-05-11', 'game_type': 'R', 'status': 'Postponed', 'away_name': 'Seattle Mariners', 'home_name': 'Detroit Tigers', 'away_id': 136, 'home_id': 116, 'doubleheader': 'N', 'game_num': 1, 'home_probable_pitcher': 'Boyd, Matthew', 'away_probable_pitcher': 'Gonzales, Marco', 'home_pitcher_note': '', 'away_pitcher_note': '', 'away_score': '0', 'home_score': '0', 'current_inning': '', 'inning_state': '', 'summary': '2018-05-11 - Seattle Mariners @ Detroit Tigers (Postponed)'}]
>>> statsapi.schedule(team=136,start_date='04/08/2018')
[{'game_id': 529544, 'game_datetime': '2018-04-08T18:10:00Z', 'game_date': '2018-04-08', 'game_type': 'R', 'status': 'Postponed', 'away_name': 'Seattle Mariners', 'home_name': 'Minnesota Twins', 'away_id': 136, 'home_id': 142, 'doubleheader': 'N', 'game_num': 1, 'home_probable_pitcher': '', 'away_probable_pitcher': '', 'home_pitcher_note': '', 'away_pitcher_note': '', 'away_score': '0', 'home_score': '0', 'current_inning': '', 'inning_state': '', 'summary': '2018-04-08 - Seattle Mariners @ Minnesota Twins (Postponed)'}]

from mlb-statsapi.

toddrob99 avatar toddrob99 commented on July 26, 2024

Please update to v0.0.8 with pip install --upgrade MLB-StatsAPI

from 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.