A tool to archive the links in PPP pads - retour accueil
git clone git://bebou.netlib.re/ppp-archive
Log | Files | Refs | README |
archive (354B)
1 #! /bin/sh 2 3 if [ "$1" = "-h" ];then 4 printf "Nécessite le lien vers le pad à parser.\nPar exemple : archive https://...\n" 5 exit 0 6 fi 7 8 pad="${1:?"Il faut mettre le lien vers le pad en argument"}" 9 curl -Ls "$pad/export/txt" | 10 grep -Eo "http[^ ]+" | 11 sed -E 's#^([^(]+)\)#\1#;s#^([^"]+)"#\1#' | 12 xargs -t -I{} curl -Ls https://web.archive.org/save/{} 13 14