Radjah

get.imouto.sh

May 30th, 2012
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.97 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. # настройки логина
  4. danlogin=логин
  5. danpass=пароль
  6.  
  7. if [ ! -d $2 ]
  8. then
  9. echo Creating $2
  10. mkdir "$2"
  11. fi
  12. echo Entering $2
  13. cd $2
  14.  
  15. ATH=`curl -k -s -c oreno.imouto.txt -F"commit=Login" -F"user[name]=${danlogin}" -F"user[password]=${danpass}" https://yande.re/user/authenticate`
  16.  
  17. uag="Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 (.NET CLR 3.5.30729)"
  18.  
  19.  
  20. postcount=`curl -k -b oreno.imouto.tx -# "https://yande.re/post/index.xml?tags=$1&limit=1"|pcregrep -o 'posts\ count=\"[^"]+'|sed -e 's/posts\ count=//' -e 's/\"//'`
  21.  
  22. rm -f get2.imouto.txt
  23.  
  24. let "pcount=postcount/1000+1"
  25.  
  26. for ((i=1; i<=$pcount; i++))
  27. do
  28. wget --no-check-certificate "https://yande.re/post/index.xml?tags=$1&limit=1000&page=$i"  --load-cookies="oreno.imouto.txt" -U "$uag" -O - |pcregrep -o -e 'file_url=[^ ]+'|sed -e 's/file_url=//g' -e 's/\"//g'  >>get2.imouto.txt
  29. done;
  30.  
  31. wget --no-check-certificate -nc -i get2.imouto.txt
Advertisement
Add Comment
Please, Sign In to add comment