From 5e9fdb40cebc50caa62572a8d915729ffc8579bb Mon Sep 17 00:00:00 2001 From: Akash Mahanty Date: Fri, 21 Jan 2022 19:51:08 +0530 Subject: [PATCH] escape '.' before 'archive.org' escape '.' before 'archive.org' on line 88 so it does not match more hosts than expected. --- waybackpy/save_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waybackpy/save_api.py b/waybackpy/save_api.py index a478a6b..fd43400 100644 --- a/waybackpy/save_api.py +++ b/waybackpy/save_api.py @@ -85,7 +85,7 @@ class WaybackMachineSaveAPI: def timestamp(self): m = re.search( - r"https?://web.archive.org/web/([0-9]{14})/http", self._archive_url + r"https?://web\.archive.org/web/([0-9]{14})/http", self._archive_url ) string_timestamp = m.group(1) timestamp = datetime.strptime(string_timestamp, "%Y%m%d%H%M%S")