getplaylist 767 B

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