开发者

Collect Data from Google Result Stream

I would like to have a stream: Say from google: http://news.google.com/news/search?aq=f&pz=1&cf=all&ned=en_ke&hl=en&q=C#

I want t开发者_如何转开发o be able to give the Seach Parameter: In this instance C# or any other search parameter and then have the results shown in my page.

I am faced with a situation where I have to collect info from google and create an msword doc with it. I want to be able to automate the data collection and hopefully the word doc creation from the strings.

Thanks


If you add output=rss onto the end of your feed, you can just read the data in XML format and write it out to your word file however you want e.g.

http://news.google.com/news?pz=1&cf=all&ned=en_ke&hl=en&q=C&cf=all&output=rss

Have a read up on the XmlTextReader as well if you're not sure how to read the RSS feed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜