Skip to content

Instantly share code, notes, and snippets.

@Semmu
Created January 6, 2017 19:13
Show Gist options
  • Save Semmu/59e80a8dd7d466dc1e1a94f5a886bad9 to your computer and use it in GitHub Desktop.
Save Semmu/59e80a8dd7d466dc1e1a94f5a886bad9 to your computer and use it in GitHub Desktop.
VGM ripper (http://downloads.khinsider.com/), batch download whole albums. First argument to the script must be an album URL.
#!/bin/bash
TRACKS=$(curl -v --silent ${1} 2>/dev/null | grep ".mp3\">Download" | sed -e 's/.*href=\"\(.*\)\">Download.*/\1/')
for TRACK in ${TRACKS}; do
URL=$(curl -v --silent ${TRACK} 2>/dev/null | grep "Click here" | sed -e 's/.*href=\"\(.*\)\">Click.*/\1/')
wget ${URL}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment