Advertisement
a-z-

Retrieve every song of the day from KEXP.org

Dec 30th, 2018
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/bash
  2. wget http://feeds.kexp.org/kexp/songoftheday?format=xml
  3. mv songoftheday\?format=xml sotd.xml
  4. grep -o http://media.*mp3 sotd.xml > sotd.lst
  5. cut sotd.lst -d\< -f1 | uniq > sotd.uniq
  6. for i in $(cat sotd.uniq) ; do wget -nd -c $i ; done
  7. rm sotd.*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement