文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>怎样将Google搜索结果变成RSS Feed?

怎样将Google搜索结果变成RSS Feed?

时间:2006-01-10  来源:manbuzhe0301

怎样将Google搜索结果变成RSS Feed?然后通过XSL将其转化为其他格式.
思想:Google Result -> result.xml (+result.xsl +PHP XSL extension)->html
但目前Google还没有提供Result到RSS的服务,所以只能借助第三方工具。

Gnews2RSS at VoidStar.com

An experimental convertor that takes a Google News search and turns it into RSS

This free service finally ate all my bandwidth so I'm afraid it's been taken down.

The source is still available.


Usage: gnews2rss.php?num=number_of_items&q=your_query

Disclaimer Don't expect this to be here, to work, or to get fixed. But if you have a question or comment, email: [email protected]

Notes:
  • num defaults to 15
  • Source http://www.voidstar.com/gnews2rss.php.txt If you have access to PHP, why not run your own.
  • Source http://www.voidstar.com/gnews2rss.php.curl.txt A version using curl.
  • If you're using Gnews2rss you presumably find it useful. Please email Google asking them to produce RSS directly out of Google News Search. And why not host it yourself to save my bandwidth costs.
  • Note: Some people have had trouble making it work on their servers where no results seem to be found. This seems to be related to fopen(), certain versions of php and some check that Google does. If you get this, read the source and try uncommenting the lines just after the data is collected to see what google returns. Alternatively try the cURL version of the source, for which of course you will need cURL support in PHP.
  • I'm happy to talk on email about all this, but I can't get involved in debugging your installation. Go back and read the disclaimer!
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载