Advertisement
metalx1000

Get NIN Music

Sep 17th, 2014
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. #!/bin/bash
  2. #still need to check if IP changes on this service
  3.  
  4. if [ -f "/usr/bin/axel" ];
  5. then
  6.     echo "Axel is installed"
  7. else
  8.     echo "Installing Axel"
  9.     sudo apt-get install axel -y
  10. fi
  11.  
  12. rm /tmp/m.lst
  13. for i in {1..10}
  14. do
  15.     wget -q "http://www.myfreemp3.cc/mp3/nine+inch+nails?page=$i" -O- >> /tmp/m.lst
  16. done
  17.  
  18.    
  19.     sed 's/data-aid/\n/g' /tmp/m.lst|grep "^="|cut -d\" -f2|shuf|\
  20.     while read line;
  21.     do
  22.         axel -n 10 "http://94.102.56.238/play.php?q=${line}dcaa_" -o $line.mp3
  23.         for i in -*;do mv -- $i $(echo $i|cut -d\- -f2);done
  24.     done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement