5.6. Google Books
Javinator9889 edited this page Aug 13, 2018
·
3 revisions
-
withBooksParams(self, params: GoogleBooks)
: defines the BookParams for doing a search at Google Books. AGoogleBooks
object must be created.
from pyGle.values import GoogleBooks
-
searchOnlyBooksWithPreview(self)
: search only books which have a preview. -
searchOnlyGoogleEBooks(self)
: search only books which are eBooks. -
searchOnlyFreeEBooks(self)
: search only for free eBooks. -
searchOnlyBooks(self)
: search only for books. -
searchOnlyNewsPapers(self)
: search only for news papers. -
searchOnlyMagazines(self)
: search only for magazines.
Here is the format of the results, when job finishes:
[ {
'title': 'book title',
'link': 'book link',
'description': 'book description',
'book_url': 'book URL',
'thumbnail': 'book thumbnail',
'publisher': {
'age': 'age of publication',
'author': 'book author'
}
},
{
'how_many_results': 'number of results found',
'stats': {
'overall_time': 'total time',
'google_search_time': 'Google searching time',
'parsing_page_time': 'time for parsing the results'
},
'url': 'Google Books URL'
}
]