ytcli

Des commandes pour utiliser youtube - retour accueil

git clone git://bebou.netlib.re/ytcli
Log | Files | Refs | README |

commit 5e318d9de7bf99695993265cc808d037e45843df
parent 3581a7fe951357e3b73ff4b6be7509246c68d5f6
Auterice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Tue, 17 Sep 2024 11:06:16 +0200

Pour les vods twitch

Diffstat:
Atwitchgetvods | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/twitchgetvods b/twitchgetvods @@ -0,0 +1,9 @@ +#! /bin/sh + +chromium --headless=new --timeout=2000 --dump-dom "https://www.twitch.tv$1" | + sed 's/">/\n/g' | + grep -A 1 "application/ld+json" | tail -n+2 | + jq -r '."@graph"[1].itemListElement[] | + [.url,.name,.uploadDate] | + @tsv' 2>/dev/null +