1
Fork 0

Add get-feed-url.

This commit is contained in:
Bauke 2022-09-05 14:34:28 +02:00
parent d407f241c6
commit 9ac06f1421
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,12 @@
gtag () {
git tag -s -a "$1" -m "Version $1"
}
get-feed-url () {
for input_url in "$@"; do
html=$(curl -fsLS "$input_url")
echo $(echo $html | select-html '[property="og:title"]' -a "content")
echo $(echo $html | select-html '[rel="alternate"][type]' -a "href")
echo
done
}