diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-02-19 18:41:05 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-02-19 18:41:05 +0100 |
commit | 7498cb2ddfc105ef9341809556fe2a79afd0547b (patch) | |
tree | 790a51820ea72d9d2b5b3e81a0269ed273c04f76 /bin/common | |
parent | bd753881db046fcf4f1280c313a746e887cd1740 (diff) |
added: (bin) y2chid and y2feed scripts
Diffstat (limited to 'bin/common')
-rwxr-xr-x | bin/common/y2chid | 7 | ||||
-rwxr-xr-x | bin/common/y2feed | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/bin/common/y2chid b/bin/common/y2chid new file mode 100755 index 0000000..68ba6bc --- /dev/null +++ b/bin/common/y2chid @@ -0,0 +1,7 @@ +#!/bin/sh + +test -z "${chidot:=$1}" \ + && chidot="$(cat /dev/stdin)" + +echo "chidot: ${chidot}" 1>&2 +curl -s "https://www.youtube.com/${chidot}/"| pup 'meta[itemprop="channelId"] attr{content}' diff --git a/bin/common/y2feed b/bin/common/y2feed new file mode 100755 index 0000000..e5e2201 --- /dev/null +++ b/bin/common/y2feed @@ -0,0 +1,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' |