#!/bin/sh
# Fetch every archived 200 copy of the SSGEOS home page listed in the given list (wayback-home-copies.txt), raw "id_" form, politely.
LIST="$1"; OUT="$2"
while read -r ts orig len; do
  f="$OUT/home-$ts.html"
  [ -s "$f" ] && continue
  python3 -I "$(dirname "$0")/fetch_save.py" "$OUT" "home-$ts.html=https://web.archive.org/web/${ts}id_/${orig}"
  sleep 2
done < "$LIST"
