From 7498cb2ddfc105ef9341809556fe2a79afd0547b Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 19 Feb 2023 18:41:05 +0100 Subject: added: (bin) y2chid and y2feed scripts --- bin/common/y2chid | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/common/y2chid (limited to 'bin/common/y2chid') 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}' -- cgit v1.2.3