Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Weibo] KeyError: 'id' #2817

Closed
biggestsonicfan opened this issue Aug 11, 2022 · 1 comment
Closed

[Weibo] KeyError: 'id' #2817

biggestsonicfan opened this issue Aug 11, 2022 · 1 comment
Labels

Comments

@biggestsonicfan
Copy link

Command: gallery-dl https://weibo.com/sida66?tabtype=album

It gets so far then

urllib3.connectionpool: https://weibo.com:443 "GET /ajax/profile/getImageWall?uid=3173891080&sinceid=3562358767565621_-1_20130430_-1 HTTP/1.1" 200 None
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3562358767565621 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3562358767565621_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3560929125795057 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3560929125795057_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3560928131602574 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3560928131602574_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3559506137105360 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3559506137105360_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3557311920756985 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3557311920756985_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3556568421015839 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3556568421015839_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3556185732773304 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3556185732773304_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3556184382086444 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3556184382086444_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3556094154652462 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3556094154652462_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3555845830925794 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3555845830925794_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3555844706908396 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3555844706908396_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3555833919535673 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3555833919535673_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3547904893863775 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3547904893863775_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3547904071665911 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3547904071665911_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3547903635349689 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3547903635349689_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3547903157077616 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3547903157077616_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3547902637117437 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3547902637117437_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3547902016467883 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3547902016467883_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3547143145174430 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3547143145174430_01.jpg
urllib3.connectionpool: https://weibo.com:443 "GET /ajax/statuses/show?id=3547142830761421 HTTP/1.1" 200 None
/run/media/xxx/bfd18/dl/gallery-dl/weibo/小小小豺包w/3547142830761421_01.jpg
weibo: An unexpected error occurred: KeyError - 'id'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
weibo: 
Traceback (most recent call last):
  File "/home/xxx/.local/lib/python3.10/site-packages/gallery_dl/job.py", line 82, in run
    for msg in extractor:
  File "/home/xxx/.local/lib/python3.10/site-packages/gallery_dl/extractor/weibo.py", line 53, in items
    for status in self.statuses():
  File "/home/xxx/.local/lib/python3.10/site-packages/gallery_dl/extractor/weibo.py", line 325, in statuses
    for image in self._pagination(endpoint, params):
  File "/home/xxx/.local/lib/python3.10/site-packages/gallery_dl/extractor/weibo.py", line 158, in _pagination
    params["since_id"] = statuses[-1]["id"] - 1
KeyError: 'id'
@mikf
Copy link
Owner

mikf commented Aug 12, 2022

Fixed in commit 1c89ccb.

This error happened at the transition from the last page to the next, which doesn't exist, so you did download everything for https://weibo.com/sida66?tabtype=album regardless of this error.

@mikf mikf closed this as completed Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants