简体   繁体   English

谷歌搜索作为RSS订阅源

[英]google search as an rss feed

Is there a way to have treat google serach results as an rss feed? 有没有办法将谷歌搜索结果作为RSS提要?

For example say I worked for stackoverflow and wanted to montior how if the results from the following search url: http://www.google.com/search?hl=en&q=stackoverflow changes from day today. 例如,我说我在stackoverflow工作,并希望监控以下搜索网址的结果: http://www.google.com/search?hl=en&q=stackoverflowhttp://www.google.com/search?hl=en&q=stackoverflow hl = zh_CN&q = stoveroverflow从今天开始变化。

It would be cool if I could append &output=rss to the url and get back a feed like with google news. 如果我可以将&output=rss附加到网址并获取与Google新闻一样的Feed,那将会很酷。 But that does not seem to be supported. 但这似乎并不受支持。

Anyone have ideas? 有人有想法吗? (Note I am programing with Ruby and Rails, if that matters) (注意我正在使用Ruby和Rails进行编程,如果这很重要的话)

Thanks! 谢谢!

Jonathan 乔纳森

Google has the Google Alerts service, which notifies you whenever it finds new content matching a certain query. Google提供Google快讯服务,只要发现与特定查询匹配的新内容,就会通知您。 Besides sending to an email address (instantly, daily, weekly), it allows you to create an RSS feed out of it. 除了发送到电子邮件地址(即时,每天,每周),它还允许您从中创建RSS源。

No, Google doesn't offer that feature. 不,Google不提供该功能。 If you need to parse/convert the result of a query on Google, you can use a (X)HTML parser such as Nokogiri . 如果您需要在Google上解析/转换查询结果,则可以使用(X)HTML解析器,例如Nokogiri

Beware that automatic requests to Google may violate its TOS. 请注意,对Google的自动请求可能会违反其服务条款。

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

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