Skip to content

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

Open
bambrose24 wants to merge 2 commits intoMySportsFeeds:masterfrom
bambrose24:weekly-game-lines
Open

Add a weekly game lines feed to the python API#13
bambrose24 wants to merge 2 commits intoMySportsFeeds:masterfrom
bambrose24:weekly-game-lines

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