Skip to content

Instantly share code, notes, and snippets.

@yfe404
Created November 4, 2015 10:29
Show Gist options
  • Save yfe404/dc26961abb1faf994295 to your computer and use it in GitHub Desktop.
Save yfe404/dc26961abb1faf994295 to your computer and use it in GitHub Desktop.
#!/bin/bash
URL=$1
echo $URL
wget --output-document="index.html" $URL
for code in `cat index.html | grep '/watch?v' | cut -d '=' -f 4 | grep -v 'title' | cut -d '"' -f 1`
do
echo $code
youtube-dl -x --audio-format "best" --audio-quality 0 $code
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment