Advertisement
azusafan

pixiv_manga

Mar 4th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # to grab manga entry off pixiv. Manga view (..mode=manga&illust_id=123) - scrolling mode
  4. # right click - copy image location, make sure you have the cookie, then run the script
  5.  
  6. # script_name pixiv_cookie.txt "http://i2.pixiv.net/err/1234_p1.jpg" 0 4
  7.  
  8. # Worth it if you're copying 10+ images, if it's only 2 or 3, copy 'em like usual.
  9. # Weakness : only one tipe of image ($ext)
  10.  
  11. link=`echo "$2" | sed 's/_p[0-9][0-9]*.[A-Za-z][A-Za-z]*$/_p/'`
  12. ext=`echo "$2" | grep -Eo '[A-Za-z]+$' | sed 's/\?//'`
  13. #echo "link=$link, ext=$ext"
  14. for i in `seq $3 $4`
  15. do
  16.     wget -c -t 5 --load-cookies $1 --header "Referer: http://www.pixiv.net" "$link$i.$ext"
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement