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