mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 21:28:29 +03:00
todo
This commit is contained in:
@@ -63,6 +63,7 @@ class WaybackArchiver(Archiver):
|
|||||||
|
|
||||||
status_json = status_r.json()
|
status_json = status_r.json()
|
||||||
if status_json['status'] != 'success':
|
if status_json['status'] != 'success':
|
||||||
|
# TODO: if "please try again" in str(status_json).lower() then this can be retried in the future
|
||||||
return ArchiveResult(status='Internet Archive failed: ' + str(status_json))
|
return ArchiveResult(status='Internet Archive failed: ' + str(status_json))
|
||||||
|
|
||||||
archive_url = f"https://web.archive.org/web/{status_json['timestamp']}/{status_json['original_url']}"
|
archive_url = f"https://web.archive.org/web/{status_json['timestamp']}/{status_json['original_url']}"
|
||||||
|
|||||||
Reference in New Issue
Block a user