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

User data? #23

Closed
HughP opened this issue Feb 20, 2016 · 1 comment
Closed

User data? #23

HughP opened this issue Feb 20, 2016 · 1 comment

Comments

@HughP
Copy link

HughP commented Feb 20, 2016

I was looking at the documentation, and it seems that there are no options for user data via this library. http://lcosmin.github.io/boardgamegeek/modules.html#module-boardgamegeek.user Is this true? or is this just a fluke of the documentation? I interested in playing with user data, but need a tool to access it. I started messing around with this tool some weeks ago when I was looking at game data.

@lcosmin
Copy link
Owner

lcosmin commented Feb 21, 2016

Meh. Yes, something should have been there. Documentation for this library has always been an work in progress... :( I'll make sure it's fixed in the refactored version (which I'm slooowly working on).

But I believe it's pretty easy to figure out even without the documentation. Just fire up an interactive Python and do something like:

>>> from boardgamegeek import BoardGameGeek
>>> bgg = BoardGameGeek()
>>> u = bgg.user("fagentu007")
>>> dir(u)
['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattr__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_buddies', '_data', '_format', '_guilds', '_hot', '_top', 'add_buddy', 'add_guild', 'add_hot_item', 'add_top_item', 'avatar', 'buddies', 'country', 'data', 'firstname', 'guilds', 'homepage', 'hot10', 'id', 'last_login', 'lastname', 'name', 'psn_account', 'state', 'steam_account', 'top10', 'total_buddies', 'total_guilds', 'trade_rating', 'wii_account', 'xbox_account']

You can see the properties of the User object here: https://github.com/lcosmin/boardgamegeek/blob/master/boardgamegeek/user.py#L117

I'm closing this because there's issue #8 already created.

@lcosmin lcosmin closed this as completed Feb 21, 2016
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

2 participants