Python 图像搜索包装器

发布于 2024-12-27 16:03:07 字数 298 浏览 0 评论 0原文

我试图找到一种简单的方法来在 Python 中进行一些图像搜索,其返回结果数量比 Google 的 API 允许的数量要多,即 64。我花了一些时间尝试使用 Python Boss Mashup Framework,我仔细按照安装说明进行操作,但尝试进行任何搜索总是返回授权错误。

我基本上只想搜索一个术语并获取出现的前 100 个图像 URL。特定的搜索引擎并不重要。任何有关简单方法的建议将不胜感激!

I'm trying to figure out a straightforward way to do some image searching in Python with larger numbers of return results than Google's API allows, i.e. 64. I spent some time trying to use the Python Boss Mashup Framework, and I followed the install instructions carefully, but attempting to do any searches always returns authorization errors.

I basically just want to search on a term and grab the first, say, 100 image urls that come up. The particular search engine doesn't matter. Any advice on a simple way to do this would be appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

因为看清所以看轻 2025-01-03 16:03:07

不确定这是否足够简单,但您可以使用 Mechanize 直接访问 Google 图片搜索,点击下一个链接可获取更多结果等。它非常易于使用,几乎微不足道。

Not sure if this is simple enough, but you could use Mechanize to directly access Google Image search, click the next link for more results, etc. It's very easy to use, almost trivial.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文