8 curl
-sS "http://web.archive.org/web/timemap/link/$url" |\
9 while read -r link parameters
11 # strip leading "<" and trailing ">;"
12 memento_url
=${link:1: -2}
14 if expr "$parameters" : '.*memento' >/dev
/null
16 datetime
=`expr "$parameters" : '.*datetime="\([^"]\+\)'`
17 echo "$memento_url $datetime"
21 while read -r memento_url datetime
24 snapshot
=`date +%F-%T -d "$datetime"`
29 # "||true" -> ignore http errors like upstream 404
30 wget
-c "$memento_url" || true