crustymonkey / py-bgg

A simple Board Game Geek (boardgamegeek.com) API library in Python. This mainly just handles the API calls and converts the XML to representative dict/list format
GNU General Public License v2.0
31 stars 8 forks source link

Support for marketplace data #9

Closed yvlcmb closed 2 years ago

yvlcmb commented 2 years ago

It would be a great addition to this package I think to add marketplace as a key-word argument to the libbgg.apiv1.BGG.get_game method, then you could do this:

from libbgg.apiv1 import BGG

conn = BGG() 

conn.get_game(game_ids=[4688], marketplace=1)

...to retrieve the marketplace data for a certain game. It appears that the BGG XML API supports marketplace info for games.