Last active
February 1, 2024 02:44
-
-
Save nloveladyallen/7d55ae01c9601b239e1429adc2579414 to your computer and use it in GitHub Desktop.
Download files from JWPepper (usage: `./jwpepper.sh Name of Song`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
escaped=$(echo $@ | sed 's/ /+/g') | |
url="https://www.jwpepper.com/sheet-music/search.jsp?keywords=$escaped" | |
id=$(wget -q -O- $url | fgrep -m 1 '<span id="' | sed -r 's/.+"([0-9]+)".+/\1/') | |
wget https://www.jwpepper.com/audio/$id.mp3 -O audio/$(echo $@ | sed 's/ /_/g').mp3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Iamstillyourdreamer/jwpepper.sh