One line covering manuscript to view youtube video clips from the command line: linux

By  |  0 Comments
Related Products
 #!/ bin/sh.
[ -z "$*" ]|| crinkle "https://www.youtube.com/results" -s -G-- data-urlencode "search_query=$ *"|dog 'manuscript'|grep "^ * var ytInitialData"|sed's/ ^[^=] *=// g; s/;$//'|jq '. |. videoRenderer?'|sed '/ ^ void$/ d'|jq '. title.runs[0] message,. longBylineText.runs[0] message,. shortViewCountText.simpleText,. lengthText.simpleText,. publishedTimeText.simpleText,. videoId'|sed's/ ^"//; s/"$//; s/"// g'|sed -E -n "s/(. 60 ). */ 1/; N; s/n(. 30 ). */ n1/; N; N; N; N; s/n/t |/ g;p"|column -t -s "$( printf "t")"|fzf-- delimiter=' |'-- nth= 1,2|sed -E's _. *|([^|] *)$ _ https://www.youtube.com/watch?v=1_'|xargs -r -I' ' mpv 

/ u/pi-star.

happywheels

You must be logged in to post a comment Login