Closed CaptSolo closed 1 month ago
Program fails with KeyError when the --uniques-only flag is specified:
--uniques-only
../waybackpack/cdx.py", line 46, in <listcomp> return [s for s in snapshots if int(s["dupecount"]) == 0] KeyError: 'dupecount'
It looks like archive.org is not sending back the dupecount field even though the 'showDupeCount': 'true' parameter gets sent along with the request.
dupecount
'showDupeCount': 'true'
Thanks for flagging, @CaptSolo! Have now pushed a change (available in v0.6.4) that provides a more informative error, although hopefully the API fixes the underlying problem (to render this moot).
Program fails with KeyError when the
--uniques-only
flag is specified:It looks like archive.org is not sending back the
dupecount
field even though the'showDupeCount': 'true'
parameter gets sent along with the request.