Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. # Install wget for windows http://downloads.sourceforge.net/gnuwin32/wget-1.11.4-1-setup.exe
  2. # Edit username, password, wget path, pages, albumname, and source URL
  3. # Save file as download.ps1, open powershell as admin, run this command once Set-ExecutionPolicy Unrestricted, then run the script
  4. $username = "username@email.com"
  5. $password = "password"
  6. $wget = "C:\Program Files (x86)\GnuWin32\bin\wget.exe"
  7. $pages = 18
  8. $albumname = "61485986\"
  9. $source = "http://i3.pixiv.net/img-original/img/2017/02/16/17/29/58/61485986"
  10. & $wget --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 -
  11.  
  12. For ($i=0; $i -le $pages; $i++) {
  13. $finalsource = $source + "_p$i.jpg"
  14. $dest = "c:\pixiv\images\$albumname"
  15. & $wget --load-cookies "c:\cookies_pixiv.net.txt" --header="Referer: http://spapi.pixiv.net/" $finalsource -P $dest
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement