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

下载图片是怎么实现的? #20

Closed
Minori-ty opened this issue Jul 31, 2022 · 8 comments
Closed

下载图片是怎么实现的? #20

Minori-ty opened this issue Jul 31, 2022 · 8 comments

Comments

@Minori-ty
Copy link

没看懂代码中的下载逻辑,是爬取详情页中的图片吗?
能否做到调用下载torrent?

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 31, 2022

调用 nhentai 官方 API 拿到本子信息,之后可以直接去下载在线浏览的原图

理论上可以,有库能在 web 中下载 torrent,但是 torrent 太不稳定了,所以才有这个脚本

@Minori-ty
Copy link
Author

调用 nhentai 官方 API 拿到本子信息,之后可以直接去下载在线浏览的原图

理论上可以,有库能在 web 中下载 torrent,但是 torrent 太不稳定了,所以才有这个脚本

也就是算是爬网页图吗?

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Jul 31, 2022

你觉得算那就算吧😂

@Minori-ty
Copy link
Author

Minori-ty commented Aug 1, 2022

你觉得算那就算吧😂

好的

@Minori-ty
Copy link
Author

你觉得算那就算吧😂

可以加个一键下载收藏页的所有作品到一个大zip的功能吗?

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Aug 6, 2022

没有这个打算

而且一次性压缩这么多页内存会炸的……

@Minori-ty
Copy link
Author

没有这个打算

而且一次性压缩这么多页内存会炸的……

可以用prompt让用户输入下载的页数,这样做到批量下载的功能

@Minori-ty
Copy link
Author

阿这,我尝试遍历所有的button,然后click,完成了一页下载。谢谢你,超人

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