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

请问如何下载同一个illust_id中的所有图片 #272

Closed
mashiron0214 opened this issue Jun 5, 2023 · 2 comments
Closed

请问如何下载同一个illust_id中的所有图片 #272

mashiron0214 opened this issue Jun 5, 2023 · 2 comments

Comments

@mashiron0214
Copy link

mashiron0214 commented Jun 5, 2023

通过Example简单改写成以下程序

json_result = api.user_illusts(USER_ID ,type="illust")
for illust in json_result.illusts:
    api.download(illust.image_urls.large)

这样只能下载p0图,同一个ID中的p1 p2... 需要如何使用api下载

@Xdynix
Copy link
Collaborator

Xdynix commented Jun 5, 2023

你可以看看json_result的内容,然后就能发现每一页图片的地址了。

from pprint import pprint
# ...
json_result = api.user_illusts(554102)
pprint(json_result)

#236 也有几个例子。

@mashiron0214
Copy link
Author

非常感谢指点,答案全在json_result。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants