Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = "username"
- $password = "password"
- $save_cookies="c\cookies_pixiv.net.txt"
- & "Path\to\wget.exe" --keep-session-cookies --save-cookies="c:\cookies_pixiv.net.txt" --no-check-certificate --post-data "mode=login&return_to=http://www.pixiv.net&pixiv_id=$username&pass=$password" 'https://accounts.pixiv.net/api/login?lang=en' -O -
- #Change page count to suit the works album
- $pages = 18
- For ($i=0; $i -le $pages; $i++) {
- #Change source to the picture URL replacing the page # with the variable, example http://i3.pixiv.net/img-original/img/2017/02/16/17/29/58/61485986_p0.jpg would be http://i3.pixiv.net/img-original/img/2017/02/16/17/29/58/61485986_p$i.jpg
- $source = "http://i3.pixiv.net/img-original/img/2017/02/16/17/29/58/61485986_p$i.jpg"
- $dest = "c:\pixiv\images"
- & "Path\to\wget.exe" --load-cookies "c:\cookies_pixiv.net.txt" --header="Referer: http://spapi.pixiv.net/" $source -P $dest
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement