Skip to content

Conversation

@TAbdiukov
Copy link

Wayback’s APIs sometimes return non-standard timestamps like 20100100190155 (day 00) or 12-digit values without seconds. These used to be parsed directly with datetime.strptime, causing ValueErrors and halting the whole executrion

This change introduces a shared parse_wayback_datetime helper n utils.py; and switches all Wayback timestamp parsing to use it, so timestamps are now handled centrally instead of via scattered datetime.strptime calls. The helper accepts 14-digit and 12-digit timestamps, normalizes values like 2010-07-00, and prevents malformed Wayback timestamps from raising exceptions that previously could halt execution in the availability, CDX, or save flows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant