diff --git a/core/goodreads.py b/core/goodreads.py index 1223085e..db93e8ce 100644 --- a/core/goodreads.py +++ b/core/goodreads.py @@ -161,6 +161,7 @@ class GoodreadsClient(object): for review in reviews: yield ({'id':review.find('id').text, 'book': {'id': review.find('book/id').text.strip(), + 'isbn10':review.find('book/isbn').text, 'isbn13':review.find('book/isbn13').text, 'title':review.find('book/title').text.strip(), 'text_reviews_count':review.find('book/text_reviews_count').text.strip(), diff --git a/core/management/commands/goodreads_books.py b/core/management/commands/goodreads_books.py index 119dd311..a1b1d334 100644 --- a/core/management/commands/goodreads_books.py +++ b/core/management/commands/goodreads_books.py @@ -11,4 +11,4 @@ class Command(BaseCommand): max_books = int(max_books) gc = GoodreadsClient(key=settings.GOODREADS_API_KEY, secret=settings.GOODREADS_API_SECRET) for (i, review) in enumerate(islice(gc.review_list(user_id,shelf=shelf_name),max_books)): - print i, review["book"]["title"], review["book"]["small_image_url"] \ No newline at end of file + print i, review["book"]["title"], review["book"]["isbn10"], review["book"]["small_image_url"] \ No newline at end of file