积极答复者
怎么样可以取得别的网站的(如网易)新闻的正文部分,而不要别的部分!

问题
答案
-
你好:
我建议你使用htmlagilitypack,这个类库可以轻松实现截取一个页面中指定的节点中的内容。当然你也可以直接使用httprequest 和httpresponse去请求一个页面来分析返回的页面Html代码。
http://htmlagilitypack.codeplex.com/
http://runtingsproper.blogspot.com/2009/11/easily-extracting-links-from-snippet-of.html
http://blog.abodit.com/2010/03/a-simple-web-crawler-in-c-using-htmlagilitypack/希望对你有所帮助。
- 已标记为答案 BoberSongModerator 2010年9月8日 5:47
全部回复
-
自己分析页面吧,不同页面布局不同的,没有通用的方法。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP -
你好:
我建议你使用htmlagilitypack,这个类库可以轻松实现截取一个页面中指定的节点中的内容。当然你也可以直接使用httprequest 和httpresponse去请求一个页面来分析返回的页面Html代码。
http://htmlagilitypack.codeplex.com/
http://runtingsproper.blogspot.com/2009/11/easily-extracting-links-from-snippet-of.html
http://blog.abodit.com/2010/03/a-simple-web-crawler-in-c-using-htmlagilitypack/希望对你有所帮助。
- 已标记为答案 BoberSongModerator 2010年9月8日 5:47