diff --git a/.functions.zsh b/.functions.zsh index 3a2bd90..4a0992c 100644 --- a/.functions.zsh +++ b/.functions.zsh @@ -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 +}