Closed Hunter-Github closed 7 years ago
Thanks for flagging! Do you have an example URL where that raises this error?
Sure:
waybackpack -d BugExample --from-date 20130301190431 --to-date 20130301190431 http://www.reuters.com/finance/deals/
(Although I guess it may be a bit more non-deterministic, for instance when I plugged the same date into Web Archive manually, I got the archived page).
Thanks, and indeed quite strange. I'm having an experience similar to yours: When I visit the archive page for that link, I sometimes get data, and other times an empty response. In terms of handling those errors, would you rather:
(a) waybackpack
skip those snapshots, or
(b) retry up to x
times, or
(c) follow some other behavior?
Also: @wumpus, any thoughts on what might be happening re. these Wayback Machine responses?
The simplest option, IMO, would be to leave the decision to the user:
Rationale:
First pass at handling this, here: https://github.com/jsvine/waybackpack/pull/20
Adds --ignore-errors
flag. Though perhaps it should be --skip-errors
?
Does this look/work as expected? Or were you thinking of another approach?
Haven't tried the test yet, but the changes look sound to me - https://github.com/jsvine/waybackpack/pull/20/commits/9603712201307f4410aa4b2440c0d81aee1f9298
Merged, incorporated into v0.3.3
and pushed to PyPi!
requests.exceptions.ChunkedEncodingError
is raised all too often.