use old google api
This commit is contained in:
parent
1412cb4e39
commit
404842f849
4 changed files with 119 additions and 20 deletions
|
|
@ -31,9 +31,9 @@ providers = [
|
|||
('abebooks', 'isbn')
|
||||
]
|
||||
|
||||
def find(query):
|
||||
#results = google.find(query)
|
||||
results = duckduckgo.find(query)
|
||||
def find(title=None, author=None):
|
||||
results = google.find(title=title, author=author)
|
||||
#results = duckduckgo.find(query)
|
||||
'''
|
||||
results = openlibrary.find(query)
|
||||
for r in results:
|
||||
|
|
@ -55,7 +55,7 @@ def lookup(key, value):
|
|||
return {}
|
||||
if key == 'isbn':
|
||||
try:
|
||||
data = google.info(key, value)
|
||||
data = google.info(value)
|
||||
except:
|
||||
logger.debug('google.info failed %s=%s', key, value, exc_info=True)
|
||||
data = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue