- #!/bin/sh
- #This is an experimental and temporary script to work out the json data we need in TubeMan
- #playlist: https://www.youtube.com/playlist?list=UUY8gSLTqvs38bR9X061jFWw
- #initial grab:
- #to grep: ["ytInitialData"] = {}
- #'.contents.twoColumnBrowseResultsRenderer.tabs[].tabRenderer.content.sectionListRenderer.contents[].itemSectionRenderer.contents[].playlistVideoListRenderer.contents[].playlistVideoRenderer.videoId'
- cont="4qmFsgIkEhpWTFVVWThnU0xUcXZzMzhiUjlYMDYxakZXdxoGQ0dVJTNE"
- #&continuation=${cont}
- curl -s "https://www.youtube.com/browse_ajax?ctoken=${cont}" \
- -H "X-YouTube-Client-Version: 2.20180117" \
- -H "X-YouTube-Client-Name: 1" | jq -r '.[1].response.continuationContents.playlistVideoListContinuation.contents[].playlistVideoRenderer.videoId'
|