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

Add a weekly game lines feed to the python API #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bambrose24
Copy link

This feed type exists in the API (https://www.mysportsfeeds.com/data-feeds/api-docs/#) and should have an entry here. This PR adds that feed type, and exposes the weekly feed data in accordance with the API docs.

>>> msf
<ohmysportsfeedspy.MySportsFeeds_API.MySportsFeeds object at 0x102506790>
>>> msf.version
'2.1'
>>> resp = msf.msf_get_data(league='nfl', season='2021-2022-regular', week=18, feed='weekly_game_lines', format='json')
    URL TO CALL https://api.mysportsfeeds.com/v2.1/pull/nfl/2021-2022-regular/week/18/odds_gamelines.json
>>> resp.keys()
dict_keys(['lastUpdatedOn', 'gameLines', 'references'])
>>> len(resp['gameLines'])
16

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

Successfully merging this pull request may close these issues.

1 participant