jollygamer321

download_full_db.sh

Nov 8th, 2011
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. COUNTER=2
  4.  
  5. for i in `cat ~/tvtz/id_list`;
  6. do
  7.      if [ $COUNTER -lt 1 ]
  8.           then
  9.                exit
  10.           else
  11.                if [ -f ~/tvtz/pages/$i.html ]
  12.                     then
  13.                          continue
  14.                     else
  15.                          curl -b "uid=asd; pass=asdf" "http://tvtorrentz.org/details.php?id=$i&filelist=1" > ~/tvtz/pages/$i.html
  16.                          sleep 8
  17.                          (( COUNTER=COUNTER-1 ))
  18.                          continue
  19.                fi
  20.      fi
  21. done
  22.  
  23.  
Add Comment
Please, Sign In to add comment