复制所有文字从WebBrowser控件控件、文字、WebBrowser

2023-09-03 00:42:28 作者:蒙着耳朵

是否有可能从刮掉,是由 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.

更新:(以下评论)

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