From: Nicolas Boisselier Date: Sat, 5 Dec 2020 09:15:49 +0000 (+0000) Subject: lib/postgres/html_attribute.sh X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=36244624a3c5de0de90adb3e4bbe95eb108b682a;p=nb.git lib/postgres/html_attribute.sh --- diff --git a/lib/postgres/html_attribute.sh b/lib/postgres/html_attribute.sh index 564442b8..7ba5b846 100755 --- a/lib/postgres/html_attribute.sh +++ b/lib/postgres/html_attribute.sh @@ -3,7 +3,3 @@ http_get https://html.com/attributes/ \ | sed -E "s,<(thrive_headline|header)[^.>]+>([^<]+),
\2
," \ | xmllint --html --xpath //table - 2>/dev/null \ | xml2csv - \ -| sed -E \ - -e "s/”/\"/g" -e "s,^[^<]+(<[^>]+>)[^\t]+,\L\1," \ - -e "s,^(<([^ ]+) ([^=>]+)),https://html.com/attributes/\2-\3/\t\1," \ -| awk 'BEGIN{FS="\t"}{print $2"\t"$3"\t"$1}' \