如何在Python中下载谷歌图像搜索结果 [英] How to download google image search results in Python

查看:95
本文介绍了如何在Python中下载谷歌图像搜索结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之前已经多次询问过这个问题,但所有答案都至少有几年的历史,并且目前基于不再支持的ajax.googleapis.com API。

This question has been asked numerous times before, but all answers are at least a couple years old and currently based on the ajax.googleapis.com API, which is no longer supported.

有没有人知道另一种方式?我正在尝试下载大约一百个搜索结果,除了Python API之外,我还尝试了许多基于桌面,基于浏览器或浏览器插件的程序,这些都是失败的。

Does anyone know of another way? I'm trying to download a hundred or so search results, and in addition to Python APIs I've tried numerous desktop, browser-based, or browser-addon programs for doing this which all failed.

谢谢!

推荐答案

使用 Google自定义搜索,以实现您的目标。
请参阅 @ i08in的回答 Python - 从谷歌图片搜索下载图片?它有很好的描述,脚本样本和图书馆参考。

Use the Google Custom Search for what you want to achieve. See @i08in's answer of "Python - Download Images from google Image search?" it has great description, script samples and libraries references.

祝你好运!

这篇关于如何在Python中下载谷歌图像搜索结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆