什么是获得谷歌搜索结果的正确方法? [英] What is the correct way to get google search results?

查看:100
本文介绍了什么是获得谷歌搜索结果的正确方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要在Google上获取特定关键字搜索的所有搜索结果。我已经看到了刮擦的建议,但这似乎是一个坏主意。我见过使用API​​的Gems(我计划使用Ruby)。我也看到了使用API​​的建议。



有谁知道现在最好的方法吗?该API不再被支持,我看到有人报告他们得到了无法使用的数据。请问宝石帮忙解决这个问题还是不行?



在此先感谢您。

根据 http://code.google.com/apis/websearch/ ,搜索API已被弃用 - 但有替代品,自定义搜索API 一>。这会做你想要的吗?



如果是这样,一个快速的网页搜索出现在 https:/ /github.com/alexreisner/google_custom_search 以及其他宝石。


I want to get all the search results for a particular keyword search on google. I've seen suggestions of scraping, but this seems like a bad idea. I've seen Gems (I plan on using ruby) that do scraping and use the API. I've also seen suggestions of using the API.

Does anyone know the best way to do this right now? The API Is no longer supported and I've seen people report they get unusable data back. Do the Gems help solve this or no?

Thanks in advance.

解决方案

According to http://code.google.com/apis/websearch/ , the Search API has been deprecated -- but there's a replacement, the Custom Search API. Will that do what you want?

If so, a quick Web search turned up https://github.com/alexreisner/google_custom_search , among other gems.

这篇关于什么是获得谷歌搜索结果的正确方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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