Pixiv Batch Downloader

UPDATE: check here.

I like to go to Pixiv and download the images from there, because a lot of images that I want to save, it is painful to save it manually. So I tried to look up an apps to do it more efficiently. Then I found Ank pixiv, an addons for Firefox, but it doesn’t offer batch download. So I tried to look another alternative, then I found this, but it also doesn’t offer batch download. Inspired from the script, I tried to make it better, so I made a Pixiv Batch Downloader, this apps will download all images from 1 member id at pixiv.

You can download it here the new one.

How to use:

  1. Extract the zip file to new folder.
  2. Run the pixivUtil.exe
  3. Type your Username and password, press enter. It will try to log in
  4. After log in, enter the member id.
  5. It will look up all the images and save it to your current folder

Note: you can fill the username and password in the file config.ini (open it using wordpad) and setting the proxy by fill the address and set useProxy = True.

Note: you must set your regional setting to Japanese!

  • Windows XP: go to Control Panel->Regional and Language Options-> Advanced -> Language for non-unicode program, set it into Japanese.
  • Windows Vista/7: Control Panel ->Region and Language -> Administrative-> Language for non-unicode program -> Change System locale, set into Japanese

This program is made using python, and here is the source the new one.

Note: you need to download and install Python26, BeautifulSoup and mechanize to compile it.

Note: this is the first time I’m using Python to make this.

Update:

  • update the downloader now, because they change the login form order, now add form_order at the config.ini and put the correct number (from 0 to 1), need to download the file again
  • add extra feature πŸ™‚ Put list.txt on the same folder, and it will read the list of member_id(1 id per line) , ie:
  • 12345
    # every line with #prefix will be skipped
    23456

34 thoughts on “Pixiv Batch Downloader”

  1. Explain from start, how to download pictures from novel.pixiv.net/ comic.pixiv.net i didnt understand any of this.

    1. either use the tags.txt (check the latest version), or you must enable japanese for non-unicode application and install japanese ime (google it :)).

        1. you must create a text file containing the tags you want to download and save it as tags.txt, and use the latest version.

    2. install japanese IME and enable japanese for non-unicode program from the control panel-> regional setting (google it :)) and just paste it (note: cannot use ctrl-V, console paste is different, click the icon in the top-left, select edit and paste, if it show up as block then you haven’t enable the japanese setting) or alternatively create tags.txt on the program folder, paste your tags there and choose download from tags list (see the readme).

  2. I’m having an issue with the program, after I enter the member ID and press enter, it says”
    Getting pages from: ******
    listing page #1
    Traceback(most recent call last):
    File “pixivUtil.py”, line 266, in
    File “pixivUtil.py”, line 148, in download AllImages
    AttributeError: ‘NoneType’ object has no attribute ‘findAll’

    Am I using this thing wrong?

    1. Ok, I was using the program wrong, I forgot that capitalizing my Username doesn’t work, and it was accepting the false username. However, I’m having a new problem. I’m running the program using the Applocale program to run it in Japanese but your program is giving me the following error:
      Getting file id: *******
      artist: error at *******
      (, UnicodeEncodeError(‘charmap’, u’u6216′, 0, 1, ‘character maps to ‘), )

      What am I doing wrong this time?

      1. Try to change your non-unicode regional setting to Japanese. Somehow applocale cannot be used(?, never used it before)

        For login, I think I need to check it whether the login is success or not :))

        EDIT: apparently, there is some limitation in python windows console, some of the chars in the unicode cannot be decoded correctly. Try to download another member_id and tell me if it works (My pc is set to japanese)

        EDIT2: found a member_id that raise unicode exception, the error is because my program tries to display the string but python cannot decode it correctly to win32. I can solve it simply by not to display the string, the filename is not affected (tough if you not using unicode capable image viewer, you cannot open it. the filename will show ‘?’)

  3. This works fantastic, especially with the addition of automatic artist tracking via the list.txt file. Thanks a bunch.

    1. I think this also deserves note: it handles the Manga Mode illustrations without a hitch. This is really excellent, well done.

  4. This Batch Downloader is quite efficient. Actually there’s already some downloader in the internet,like maJAJa,ipixiv,OX163. But the graphical interface was not easy to handle.

    What I’m thinking about was that:
    would it be possible for your Batch Downloader load a list of member id so that it will automatically download a list of member’s pictures.

    To parse a list of my favorite members’ IDs, and then load them to your B.D., that would be a great convenience.

    Thanks for your tool, it looks very nice! πŸ™‚

    1. the 20100122 version is able to process list of member_id for batch download. Just create list.txt and fill it with the member id separated by new line. Save it in the same folder with the py/exe.

  5. Hmm. I tried your program but I can’t get it to work. It gets to the “Start Login” step, and then it seems to crash/close every time. I’m running Vista with Japanese set for non-unicode.

    It gives this message: “ClientForm.ControlNotFoundError: no control matching name ‘pixiv_id'”.

Comments are closed.