kopia lustrzana https://github.com/bellingcat/auto-archiver
todo
rodzic
c622f941d7
commit
a0be3c8a22
|
@ -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']}"
|
||||||
|
|
Ładowanie…
Reference in New Issue