lcosmin / boardgamegeek

A Python interface to boardgamegeek.com. Pulls information from BGG and creates Python objects for the data.
BSD 3-Clause "New" or "Revised" License
116 stars 70 forks source link

Improve 'plays' support #10

Open lcosmin opened 9 years ago

lcosmin commented 9 years ago
mad4hatter commented 9 years ago

I mentioned this on BGG but thought I'd add it here, too. It would be cool to get player scores and location for the play sessions.

lcosmin commented 9 years ago

@mad4hatter : could you try the latest release (0.7.0) please?

mad4hatter commented 9 years ago

That mostly works! I think there may be a limit to the scores, though? I logged a eurorails game where the scores were in the millions and it lists all of the scores as 0.0. Just an FYI.

lcosmin commented 9 years ago

Hmm.. truth is that I only tested with retrieving the plays of an user, not a game. I'll take a look. Thanks!

lcosmin commented 9 years ago

@mad4hatter : I've listed the plays for a few games and the most of them don't have any score (it's empty), while others have things like "49-46ish", "36, 42", as score. I guess this is what happens when you use the field as string and let people put whatever they want in there. :smile: I'll have to adjust my code not to try to interpret that value as a number and just return whatever junk the API returns.

mcgriffiths commented 8 years ago

Please could you add documentation for the Plays module when you have time?

lcosmin commented 8 years ago

I don't have much energy to work on this project lately... I will get back to it, eventually (especially since the refactoring is not finished), but I can't really say when. I don't think it will be very soon though, sorry. :disappointed:

mcgriffiths commented 8 years ago

OK thanks! Hopefully I can figure out how to use it for myself :)

lcosmin commented 8 years ago

It shouldn't be very hard:

https://github.com/lcosmin/boardgamegeek/blob/master/boardgamegeek/main.py#L127 https://github.com/lcosmin/boardgamegeek/blob/master/test/test_bgg.py#L444

allisontharp commented 8 years ago

@qwertymartin I wrote a quick script using this to pull my plays into Google Sheets. I posted about it on BGG -- maybe it'll help you? If you have any specific questions, I can try to help. Just message me here or on BGG!

https://boardgamegeek.com/thread/1514172/python-script-pull-play-data-google-sheets