Goodreads Developers discussion
bugs
>
Python code in documentation not working
date
newest »




import requests
import xmltodict
resp = requests.get('https://www.goodreads.com/review/list...', params= {'key':Goodreads['key'], 'v': 2, 'id': myuserid})
data_dict = xmltodict.parse(resp.content)['GoodreadsResponse']
reviews_books = [r for r in data_dict['reviews']['review']]
Hope that helps.

Using the following with the rauth library worked for me.
```
goodreads = OAuth1Service(
consumer_key=key,
consumer_secret=secret,
name='goodreads',
request_token_url='https://www.goodreads.com/oauth/reque...',
authorize_url='https://www.goodreads.com/oauth/autho...',
access_token_url='https://www.goodreads.com/oauth/acces...',
base_url='https://www.goodreads.com/'
)
```
Here is my code:
Instead of running smoothly its throwing this error:
Whole error here: https://pastebin.com/xPdzW2aQ
I had googled all the possible reasons, but can't get any solution. I am stuck. Any help will be appreciated.