Advertisement
azusafan

pixiv_by_tag

Oct 26th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # ./your_script.sh pixiv_cookie.txt "http://www.pixiv.net/tags.php?tag=love10kusers"
  4. #
  5. # I use for to grab multiple pages and you need to get that cookie.txt somehow.
  6.  
  7. for i in `wget -O - $2 | grep -Eo 'http://[a-z0-9]+.pixiv.net/img[0-9]+/img[^"]+' | \
  8.     sed 's/_s//' | uniq`
  9. do
  10.     wget -c -t 5 --load-cookies $1 --header \
  11.     "Referer: http://www.pixiv.net/" $i
  12. done
  13. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement