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