Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2105451
  • 博文数量: 194
  • 博客积分: 6450
  • 博客等级: 准将
  • 技术积分: 2085
  • 用 户 组: 普通用户
  • 注册时间: 2005-06-06 13:39
文章分类

全部博文(194)

文章存档

2013年(38)

2012年(11)

2011年(1)

2010年(1)

2009年(4)

2008年(13)

2007年(18)

2006年(63)

2005年(45)

我的朋友

分类: 系统运维

2006-01-10 10:50:37

怎样将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:

Notes:
  • num defaults to 15
  • Source 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 asking them to produce RSS directly out of Google News Search. And why not 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!

阅读(2290) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~