UPDATED 20101202b
Changelog:
- Add option for always checking the local filesize. Set “
alwaysCheckFileSize
” to True - 20101202b: Add bug fix mentioned by Ivan for handling suspended user.
Download link here, and source is here. Updated link here, source here.
Feel free to post correction or new functionality to add 😛
in my case constant changed:
PIXIV_CSS_LIST_ID = ‘display_works linkStyleWorks’
but then parseMediumImage return empty page after div class=centeredNavi
This error, every time:
Error at processMember(): (, AttributeError(“‘NoneType’ object has no attribute ‘findAll'”,), )
failed
Traceback (most recent call last):
File “PixivUtil2.py”, line 819, in main
processMember(mode, member_id)
File “PixivUtil2.py”, line 370, in processMember
linkList = parseList.find(‘div’, PixivConstant.PIXIV_CSS_LIST_ID).findAll(‘a’)
AttributeError: ‘NoneType’ object has no attribute ‘findAll’
press enter to exit.
I’m using Ubuntu 10.04 & Python 2.6.5
can you give me the image id?
I’m trying to download by member_id, and the result is the same for all that I’ve tried.
weird, it is just work fine in my place. are you using the latest one (20101202b)?
I got this error when I left it logged in overnight and tried to use it the next day. It also produced this error message on its error page:
ウェブブラウザのJavaScript(ジャバスクリプト)設定が無効になっています。
Javascriptが無効になっていると、サイト内の一部機能がご利用いただけません。
I’m not actually sure but maybe its using a time-sensitive Javascript that invalidates cookies when it doesn’t run for too long.
Yes crust, pixiv sets the login cookie to expire in 60 minutes.
何だか: yep; I’ve even tried using deprecated versions, but I still get the same problem. Therefore, the fault probably lies on my end. If I knew anything about Python (or programming in general) I might be able to help myself, but…
expire if there is no activity or just expire even there is activity? usually cookie won’t be expired if there is any request to the web server (it will be updated for each http request)?
Pixiv recently implemented an “original size” for each page of Manga mode images. Would you be able to incorporate this into the code?
can you give an example page?
Here’s one:
http://www.pixiv.net/member_illust.php?mode=medium&illust_id=12145953
It’s manga scroll page:
http://www.pixiv.net/member_illust.php?mode=manga&illust_id=12145953&type=scroll
Page 4 original size of that “manga”:
http://www.pixiv.net/member_illust.php?mode=manga_big&illust_id=12145953&page=3
A really ugly hack to enable file saving of original-sized manga-mode files.
http://pastebin.com/A9ebZrkP
If you were to add any features in the future here’s a wish list.
1. Gathers IDs from your favourites list.
2. Makes new dir for images in manga mode
3. An option for checking for updates/new images from artists in favourites list.
This is an awesomely useful program, but any hope of a GUI? I admire people who can handle it, but all the raw code makes my eyes cross, and building new download lists takes me forever. I dream of something where I can just paste in a gallery URL and associate it with a folder and everything just works from there.
Aside from that, would it be possible to have it grab the profile, background,and ‘ws’ images associated with a gallery while it’s grabbing everything else? Or for it to save the images with the server-side modification dates, like the DownThemAll! plug-in on Firefox? Kinda esoteric, I know, but I’ve found it to be handy.
nope, no gui, only console app. But if you want to code it, I can help you (tough I haven’t tried to code any python gui)
>> profile, background, ws…
why you want that info? and what is ‘ws’
>> server-side mod date
I can look for this.
I’m getting a weird problem with this version. It’s downloading images, but I don’t see them in my folder, where the heck are they? I never had this problem before, so I don’t know what’s wrong.
check your c: drive, or you can see in config.ini on ‘rootdirectory’ options.
could you host it else where uploading doesn’t seem to like me tonight.
Would it be possible to make a new dir for when it’s downloading from Manga mode?
currently no
Man just started using this awesome bit of kit but is there something like a help/how to anywhere?
oops, forgot to add the readme.txt, I’ll upload it later or you can get it from the previous release.
Update: add the readme and changelog, check the post.
What is it?
When i download image appears “raw” need to press Enter to start loading.
example:
href: bookmark_detail.php?mode=s_tag&illust_id=14812632
href: member_illust.php?mode=medium&illust_id=14786597
Image #11
Image id: 14786597
Processing Image Id: 14786597
raw
I need to press Enter to start loading this image and following so as this.
woops, forgot to remove the test, will fix it.
*updated: remove the test line
When i download “Berserk” pictures pixivdownloader write me this:
Processing Image Id: 9777195
There is an error: шй▓х╜УуГжуГ╝уВ╢уГ╝уБоуВвуВлуВжуГ│уГИуБпхБЬцнвуБХуВМуБжуБДуБ╛у
БЩуАВ
C:UsersH4rD0r3DesktoppixivPixivUtil2.exe:451: UnicodeWarning: Unicode equal
comparison failed to convert both arguments to Unicode – interpreting them as b
eing unequal
Error at processImage(): (, IndexError(‘list index
out of range’,), )
Error at processTags(): (, IndexError(‘list index
out of range’,), )
Traceback (most recent call last):
File “PixivUtil2.py”, line 838, in main
File “PixivUtil2.py”, line 670, in processTags
File “PixivUtil2.py”, line 462, in processImage
IndexError: list index out of range
press enter to exit.
What’s wrong?
apparently the image you want to get is already deleted/suspended when I try to check it manually (it show 該当ユーザーのアカウントは停止されています。, meaning: This user account has been suspended.), I need to add detection if the user already suspended from pixiv.
thanks for let me know.
No problem, I have long wanted to write about it.
I hope that with time you will manage to solve this error.
Thanks for your work 🙂
updated here.
thanks man!