[英]HTML only WebBrowser in C#?
Any way to tell a WebBrowser in C# to show the pages in HTML only? 有什么办法告诉C#中的WebBrowser只用HTML显示页面? I'm trying to make a web scraper and I don't need pictures that make the process way slower than necessary.
我正在尝试制作一个网络刮刀,而且我不需要使这个过程慢于必要的图片。
Why are you using a WebBrowser control for page scraping? 为什么使用WebBrowser控件进行页面抓取? If you just want the core html of a page, then just do a WebRequest and get the response.
如果你只想要一个页面的核心html,那么只需要做一个WebRequest并获得响应。
you're going to have to roll your own basically. 你将不得不基本上自己动手。
One way would be to build your application in WPF and use a HTML->XAML conversion process and just leave off the tag from being converted. 一种方法是在WPF中构建应用程序并使用HTML-> XAML转换过程 ,只是不要转换标记。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.