Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLB Related Functions Not Working & Possible Change in MLB API #62

Open
KeeonTabrizi opened this issue Jul 11, 2023 · 0 comments
Open

Comments

@KeeonTabrizi
Copy link

Using an endpoint constructed from this function:

searchURL = "http://lookup-service-prod.mlb.com/json/named.org_game_type_date_info.bam?current_sw='Y'&sport_code='mlb'&"

https://lookup-service-prod.mlb.com/json/named.org_game_type_date_info.bam?current_sw=%27Y%27&sport_code=%27mlb%27&game_type=%27R%27&season=%272022%27

It currently returns the following:

{"org_game_type_date_info":{"copyRight":" NOTICE: This file is no longer actively supported. Please use the MLB Stats API (http://statsapi.mlb.com/docs/) as an alternative. Copyright 2023 MLB Advanced Media, L.P. Use of any content on this page acknowledges agreement to the terms posted here http://gdx.mlb.com/components/copyright.txt ","queryResults":{"totalSize":"0","created":"2023-07-11T20:12:30"}}}

Seperately I did have some import errors on the MLB module but I think these are superseded by the issue above:

import sportsdataverse as sdv

sdv.mlb.mlbam_games.mlbam_schedule(2022, gameType='R')

>> AttributeError: module 'sportsdataverse' has no attribute 'mlb'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant