Fix Wayback Machine API query
This commit is contained in:
parent
8a3cd7f715
commit
995b24b9b6
4
buku
4
buku
@ -2635,10 +2635,10 @@ class BukuDb:
|
||||
url = arg
|
||||
|
||||
# Try fetching cached page from Wayback Machine
|
||||
api_url = 'https://archive.org/wayback/available/?url=' + quote_plus(url)
|
||||
api_url = 'https://archive.org/wayback/available?url=' + quote_plus(url)
|
||||
manager = get_PoolManager()
|
||||
resp = manager.request('GET', api_url)
|
||||
respobj = json.loads(resp.data.decode('utf-8'))
|
||||
respobj = json.loads(resp.data)
|
||||
try:
|
||||
if (
|
||||
len(respobj['archived_snapshots']) and
|
||||
|
Loading…
x
Reference in New Issue
Block a user