Skip to content

Instantly share code, notes, and snippets.

@pkmital
Created April 24, 2015 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkmital/cb828230210e685d628f to your computer and use it in GitHub Desktop.
Save pkmital/cb828230210e685d628f to your computer and use it in GitHub Desktop.
YouTube Smash Up - Download Script
#!/bin/bash
youtube-dl --playlist-end 10 -o '%(playlist_index)s.%(ext)s' https://www.youtube.com/channel/UCF0pVplsI8R5kcAqgtoRqoA/videos?view=10&flow=list&live_view=10
for i in `ls *.mp4`; do `ffmpeg -i $i -vn -y "$i".wav`; done
youtube-dl -J --playlist-end 10 https://www.youtube.com/channel/UCF0pVplsI8R5kcAqgtoRqoA/videos?view=10 | json_reformat > titles.json
#output=$(youtube-dl -J --playlist-end 10 https://www.youtube.com/channel/UCF0pVplsI8R5kcAqgtoRqoA/videos?view=10 <&3)
#echo $output > titles.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment