复制所有文字从WebBrowser控件 [英] Copy all text from webbrowser control

查看:140
本文介绍了复制所有文字从WebBrowser控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能从刮掉,是由 web浏览器控制导航到一个站点的所有文字,而不查看源?

Is it possible to scrape all the text from a site that was navigated to by WebBrowser control without looking at the source?

推荐答案

您使用的 DocumentText 财产或WebBrowser控件。

You use the DocumentText property or the WebBrowser control.

此属性是包含您所浏览到该网站的HTML。

This property is what holds the HTML of the site you have navigated to.

更新:(以下评论)

如果你想的解析<​​/ em>的HTML和它得到的文本部分,我建议你使用的 HTML敏捷性包

这篇关于复制所有文字从WebBrowser控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆