Dotfiles/bin/.bin/webtest/getpaths
2020-07-29 17:34:17 +01:00

11 lines
291 B
Bash
Executable file

#!/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