summaryrefslogtreecommitdiff
path: root/bin/common/y2feed
blob: e5e2201d1c6f62e12aa8ac32516d69209f0ff3e8 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/env bash

test -z "${url:=$1}" \
	&& url="$(cat /dev/stdin)"

echo "url: ${url}" 1>&2

curl -s "$url" | pup 'link attr{href}' | grep 'feeds'