Nandaka / PixivUtil2

Download images from Pixiv and more!
http://nandaka.devnull.zone/
BSD 2-Clause "Simplified" License
2.35k stars 258 forks source link

failed to download pictures using member id #61

Closed atliv closed 9 years ago

atliv commented 9 years ago

log

2014-12-12 02:53:46,026 - PixivUtil20141201 - INFO - Member id mode. 2014-12-12 02:53:53,380 - PixivUtil20141201 - INFO - Processing Member Id: 839384 2014-12-12 02:53:53,426 - PixivUtil20141201 - INFO - Member Url: http://www.pixiv.net/member_illust.php?id=839384&p=1 2014-12-12 02:53:54,818 - PixivUtil20141201 - DEBUG - Sanitized Filename: C:\Users\lenovo\Desktop\New folder (3)\へ猫 (839384)\folder.jpg 2014-12-12 02:53:54,819 - PixivUtil20141201 - INFO - Using Referer: http://www.pixiv.net/member_illust.php?id=839384&p=1 2014-12-12 02:53:54,901 - PixivUtil20141201 - INFO - File exist! (Identical Size) 2014-12-12 02:53:56,502 - PixivUtil20141201 - ERROR - Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x037DAD00>) 2014-12-12 02:53:56,503 - PixivUtil20141201 - ERROR - Error at process_image(): 47496557 Traceback (most recent call last): File "PixivUtil2.py", line 494, in process_image File "PixivModel.pyc", line 224, in init File "PixivModel.pyc", line 289, in ParseInfo UnboundLocalError: local variable 'temp' referenced before assignment 2014-12-12 02:53:56,529 - PixivUtil20141201 - ERROR - Dumping html to: Error medium page for image 47496557.html 2014-12-12 02:53:56,536 - PixivUtil20141201 - ERROR - Error at process_member(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x037E2620>) Member Id: 839384 Traceback (most recent call last): File "PixivUtil2.py", line 392, in process_member File "PixivUtil2.py", line 494, in process_image File "PixivModel.pyc", line 224, in init File "PixivModel.pyc", line 289, in ParseInfo UnboundLocalError: local variable 'temp' referenced before assignment 2014-12-12 02:54:00,127 - PixivUtil20141201 - ERROR - Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x039BC4E0>) 2014-12-12 02:54:00,128 - PixivUtil20141201 - ERROR - Error at process_image(): 47496557 Traceback (most recent call last): File "PixivUtil2.py", line 494, in process_image File "PixivModel.pyc", line 224, in init File "PixivModel.pyc", line 289, in ParseInfo UnboundLocalError: local variable 'temp' referenced before assignment 2014-12-12 02:54:00,148 - PixivUtil20141201 - ERROR - Dumping html to: Error medium page for image 47496557.html 2014-12-12 02:54:00,154 - PixivUtil20141201 - ERROR - Error at process_member(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x039BC940>) Member Id: 839384 Traceback (most recent call last): File "PixivUtil2.py", line 392, in process_member File "PixivUtil2.py", line 494, in process_image File "PixivModel.pyc", line 224, in init File "PixivModel.pyc", line 289, in ParseInfo UnboundLocalError: local variable 'temp' referenced before assignment 2014-12-12 02:54:03,750 - PixivUtil20141201 - ERROR - Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x03C82558>) 2014-12-12 02:54:03,750 - PixivUtil20141201 - ERROR - Error at process_image(): 47496557 Traceback (most recent call last): File "PixivUtil2.py", line 494, in process_image File "PixivModel.pyc", line 224, in init File "PixivModel.pyc", line 289, in ParseInfo UnboundLocalError: local variable 'temp' referenced before assignment 2014-12-12 02:54:03,772 - PixivUtil20141201 - ERROR - Dumping html to: Error medium page for image 47496557.html 2014-12-12 02:54:03,776 - PixivUtil20141201 - ERROR - Error at process_member(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x03C82580>) Member Id: 839384 Traceback (most recent call last): File "PixivUtil2.py", line 392, in process_member File "PixivUtil2.py", line 494, in process_image File "PixivModel.pyc", line 224, in init File "PixivModel.pyc", line 289, in ParseInfo UnboundLocalError: local variable 'temp' referenced before assignment 2014-12-12 02:54:07,369 - PixivUtil20141201 - ERROR - Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x03DCE9E0>) 2014-12-12 02:54:07,369 - PixivUtil20141201 - ERROR - Error at process_image(): 47496557 Traceback (most recent call last): File "PixivUtil2.py", line 494, in process_image File "PixivModel.pyc", line 224, in init File "PixivModel.pyc", line 289, in ParseInfo UnboundLocalError: local variable 'temp' referenced before assignment 2014-12-12 02:54:07,391 - PixivUtil20141201 - ERROR - Dumping html to: Error medium page for image 47496557.html 2014-12-12 02:54:07,395 - PixivUtil20141201 - ERROR - Error at process_member(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x03DCEFA8>) Member Id: 839384 Traceback (most recent call last): File "PixivUtil2.py", line 392, in process_member File "PixivUtil2.py", line 494, in process_image File "PixivModel.pyc", line 224, in init File "PixivModel.pyc", line 289, in ParseInfo UnboundLocalError: local variable 'temp' referenced before assignment 2014-12-12 02:54:10,898 - PixivUtil20141201 - ERROR - Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x02491328>) 2014-12-12 02:54:10,898 - PixivUtil20141201 - ERROR - Error at process_image(): 47496557 Traceback (most recent call last): File "PixivUtil2.py", line 494, in process_image File "PixivModel.pyc", line 224, in init File "PixivModel.pyc", line 289, in ParseInfo UnboundLocalError: local variable 'temp' referenced before assignment 2014-12-12 02:54:10,920 - PixivUtil20141201 - ERROR - Dumping html to: Error medium page for image 47496557.html 2014-12-12 02:54:10,923 - PixivUtil20141201 - ERROR - Giving up image_id: 47496557

vampiricwulf commented 9 years ago

I got a similar error when trying to download image ids: 29238063 47505059 47498125

Traceback (most recent call last):
  File "/Applications/PixivUtil/PixivUtil2.py", line 494, in process_image
    image = PixivImage(iid=image_id, page=parse_medium_page, parent=artist, fromBookmark=bookmark, bookmark_count=bookmark_count)
  File "/Applications/PixivUtil/PixivModel.py", line 224, in __init__
    self.ParseInfo(page)
  File "/Applications/PixivUtil/PixivModel.py", line 290, in ParseInfo
    temp_id = int(re.search('illust_id=(\d+)',temp).group(1))
UnboundLocalError: local variable 'temp' referenced before assignment
Error at process_image(): (<type 'exceptions.UnboundLocalError'>, UnboundLocalError("local variable 'temp' referenced before assignment",), <traceback object at 0x1075d7680>)
Dumping html to: Error medium page for image 47498125.html
Traceback (most recent call last):
  File "/Applications/PixivUtil/PixivUtil2.py", line 1687, in main
    np_is_valid, op_is_valid, selection = main_loop(ewd, mode, op_is_valid, selection, np_is_valid, args)
  File "/Applications/PixivUtil/PixivUtil2.py", line 1485, in main_loop
    menu_download_by_image_id(mode, op_is_valid, args)
  File "/Applications/PixivUtil/PixivUtil2.py", line 1224, in menu_download_by_image_id
    process_image(mode, None, int(image_id))
  File "/Applications/PixivUtil/PixivUtil2.py", line 494, in process_image
    image = PixivImage(iid=image_id, page=parse_medium_page, parent=artist, fromBookmark=bookmark, bookmark_count=bookmark_count)
  File "/Applications/PixivUtil/PixivModel.py", line 224, in __init__
    self.ParseInfo(page)
  File "/Applications/PixivUtil/PixivModel.py", line 290, in ParseInfo
    temp_id = int(re.search('illust_id=(\d+)',temp).group(1))
UnboundLocalError: local variable 'temp' referenced before assignment
lunusvir commented 9 years ago

I got the error about 10 hours ago too. Then figured Pixiv modified the pages. The links to 'big' images are removed. As a temporary workaround before the author responses, I forked and modified a little bit in PixivModel.py which should work until Pixiv changes more.

vampiricwulf commented 9 years ago

Yeah, another thing to note is the that Error medium page for image #{image_id}.html that it dumps is empty.

sabearcher commented 9 years ago

Link of big mode been changed. For some pics, there's no "mode=big" page, but do has a label <img class="big" src="...">

Nandaka commented 9 years ago

Duplicate with #60

Nandaka commented 9 years ago

fix on the way :smile:

Nandaka commented 9 years ago

uploaded in my blog: http://nandaka.wordpress.com/2014/12/12/pixiv-downloader-20141212/