escape '.' before 'archive.org'

escape '.' before 'archive.org' on line 88 so it does not match more hosts than expected.
This commit is contained in:
Akash Mahanty 2022-01-21 19:51:08 +05:30 committed by GitHub
parent fa72098270
commit 5e9fdb40ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")