简体   繁体   English

有没有办法以 JSON 格式获取谷歌搜索结果?

[英]Is there a way of getting google search results in JSON format?

I want to have in my JS app, a component that reads a textbox, and suggests appropriate photos,我想在我的 JS 应用程序中有一个组件,可以读取文本框并建议适当的照片,

The way i though of doing it is by searching google photos for that term, and getting the result in a JSON format我认为这样做的方法是在谷歌照片中搜索该术语,并以 JSON 格式获取结果

eg an array of links to the photos例如,一系列指向照片的链接

Is there a way to achieve this?有没有办法实现这一目标? and if not is there some other method of getting this job done?如果没有,是否有其他方法可以完成这项工作?

您可以使用刮刀来完成工作,但请记住,在多次并发请求之后,Google 会显示验证码,这将阻止刮刀继续,除非您赋予刮刀超能力来解决不同类型的验证码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM