summaryrefslogtreecommitdiff
path: root/bin/common/y2chid
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-19 18:41:05 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-19 18:41:05 +0100
commit7498cb2ddfc105ef9341809556fe2a79afd0547b (patch)
tree790a51820ea72d9d2b5b3e81a0269ed273c04f76 /bin/common/y2chid
parentbd753881db046fcf4f1280c313a746e887cd1740 (diff)
added: (bin) y2chid and y2feed scripts
Diffstat (limited to 'bin/common/y2chid')
-rwxr-xr-xbin/common/y2chid7
1 files changed, 7 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}'