I just discovered htmlq (think jq but for HTML not JSON) and it's great!
for url in $(cat ~/tmp/urls.txt)
do
echo $url
curl --silent -H "Accept: text/html" $url | htmlq "meta[property^='og:']"
echo
done
... generates me a nice summary of the OpenGraph tags for each URL in urls.txt.
[#]shell #cli #html #rust
=> More informations about this toot | View the thread | More toots from duncan_bayne@bsd.cafe
=> View shell tag | View cli tag | View html tag | View rust tag This content has been proxied by September (ba2dc).Proxy Information
text/gemini