goodreads icon indicating copy to clipboard operation
goodreads copied to clipboard

no shelf api functions?

Open Oliver2213 opened this issue 9 years ago • 2 comments

I could be mistaken, but I don't see any way to manipulate the user's shelves, (etc: adding books to, removing books from, listing, etc). I think you can use the request function to make a raw request to Goodreads and this is what I'll most likely be using for these functions, but could we get the shelf functions? :)

Oliver2213 avatar Jul 24 '15 06:07 Oliver2213

Oh... I just took another look.
This doesn't exist in the wrapper currently, and the output from xmltodict on just the list is messy.

Oliver2213 avatar Dec 15 '15 18:12 Oliver2213

Oh nevermind.

If you do something like. res = gc.session.get('shelf/list.xml', params={'page':'1', 'user_id':'some id here'}) for item in res['shelves']['user_shelf'][0] print item['name']

That seems to work

Oliver2213 avatar Dec 15 '15 19:12 Oliver2213