Commit 8969dc09 authored by TheOuterLinux's avatar TheOuterLinux


parent ca402e19
......@@ -67,6 +67,9 @@ curl -s
Expand shortened URL:
curl -sI <URL> | sed -n 's/Location: *//p';
Avatar URL:
curl -A "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3" -L | grep -Eo '(http|https)://[^"]+/jtv_user_pictures/[^"]+' | tail -n 1
Get information about a channel by ID:
......@@ -75,6 +78,9 @@ curl -X GET --header 'Accept: text/plain' '
Get information about a channel by name:
curl -X GET --header 'Accept: application/json' ''
Avatar URL:
curl -s -X GET --header 'Accept: text/plain' | cut -d '"' -f10
Viewer count:
curl -s -X GET --header 'Accept: application/json' | cut -d '"' -f15 | sed 's/://g; s/,//g'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment