Closed DreadPirateShawn closed 5 years ago
From some vectors, the book data presents the gid as text, whereas other vectors returns the book data as an OrderedDict.
>>> from goodreads import client >>> gc = client.GoodreadsClient("...", "...") >>> books = gc.shelf("18761398", 'to-read') >>> books[0].gid OrderedDict([('@type', 'integer'), ('#text', '25109947')]) >>> book = gc.book(25109947) >>> book.gid '25109947'
From some vectors, the book data presents the gid as text, whereas other vectors returns the book data as an OrderedDict.