Merge pull request #112 from akamhy/fix

escape '.' before 'archive.org'
This commit is contained in:
Akash Mahanty 2022-01-21 19:52:55 +05:30 committed by GitHub
commit 4fd9d142e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ class WaybackMachineSaveAPI:
def timestamp(self): def timestamp(self):
m = re.search( 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) string_timestamp = m.group(1)
timestamp = datetime.strptime(string_timestamp, "%Y%m%d%H%M%S") timestamp = datetime.strptime(string_timestamp, "%Y%m%d%H%M%S")