From 3dc156cf5f14d636be32bac3899047fdcc3fe568 Mon Sep 17 00:00:00 2001 From: Akash <64683866+akamhy@users.noreply.github.com> Date: Mon, 20 Jul 2020 09:38:43 +0530 Subject: [PATCH] Update wrapper.py --- waybackpy/wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waybackpy/wrapper.py b/waybackpy/wrapper.py index ffa0be6..9c5cb70 100644 --- a/waybackpy/wrapper.py +++ b/waybackpy/wrapper.py @@ -102,6 +102,7 @@ class Url(): return response.read().decode(encoding.replace("text/html", "UTF-8", 1)) def get_response(self, req): + """Get response for the supplied request.""" try: response = urlopen(req) #nosec except Exception: @@ -110,7 +111,6 @@ class Url(): except Exception as e: raise WaybackError(e) - def near(self, **kwargs): """ Returns the archived from Wayback Machine for an URL closest to the time supplied. Supported params are year, month, day, hour and minute.