diff options
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' |