You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
291 B

#!/usr/bin/env bash
html="$(curl $1 2> /dev/null )"
{
echo "$html" | hq \* attr src
echo "$html" | hq \* attr href
echo "$html" | hq \* attr target
echo "$html" | hq \* attr style | sed 's/;/\n;/' | grep url
echo "$html" | hq \* data style | sed 's/;/\n;/' | grep url
} | sort | uniq