This commit is contained in:
Akash Mahanty 2020-12-13 17:10:28 +05:30
commit a0a918cf0d

View File

@ -189,6 +189,10 @@ class Url:
headers = {"User-Agent": "%s" % self.user_agent} headers = {"User-Agent": "%s" % self.user_agent}
payload = {"url": "%s" % self._clean_url(), "timestamp" : timestamp} payload = {"url": "%s" % self._clean_url(), "timestamp" : timestamp}
response = _get_response(endpoint, params=payload, headers=headers) response = _get_response(endpoint, params=payload, headers=headers)
<<<<<<< HEAD
=======
print(response.text)
>>>>>>> bc3efc7d63621b319606f3241498be9df107b794
data = response.json() data = response.json()
if not data["archived_snapshots"]: if not data["archived_snapshots"]:
raise WaybackError( raise WaybackError(