Update wrapper.py
This commit is contained in:
parent
52b4bb9ac7
commit
d5fb9a5219
@ -62,7 +62,7 @@ def near(
|
||||
UA=default_UA,
|
||||
):
|
||||
timestamp = str(year)+str(month)+str(day)+str(hour)+str(minute)
|
||||
request_url = "https://archive.org/wayback/available?url=%s×tamp=%s" % (str(url), str(timestamp))
|
||||
request_url = "https://archive.org/wayback/available?url=%s×tamp=%s" % (str(url).strip(), str(timestamp))
|
||||
hdr = { 'User-Agent' : '%s' % UA }
|
||||
req = Request(request_url, headers=hdr)
|
||||
response = urlopen(req) #nosec
|
||||
|
Loading…
Reference in New Issue
Block a user