Advertisement
Guest User

Untitled

a guest
Feb 18th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. $username = "username"
  2. $password = "password"
  3. $save_cookies="c\cookies_pixiv.net.txt"
  4. & "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 -
  5. #Change page count to suit the works album
  6. $pages = 18
  7. For ($i=0; $i -le $pages; $i++) {
  8. #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
  9. $source = "http://i3.pixiv.net/img-original/img/2017/02/16/17/29/58/61485986_p$i.jpg"
  10. $dest = "c:\pixiv\images"
  11. & "Path\to\wget.exe" --load-cookies "c:\cookies_pixiv.net.txt" --header="Referer: http://spapi.pixiv.net/" $source -P $dest
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement