开发者

HTML only WebBrowser in C#?

开发者 https://www.devze.com 2023-01-08 21:05 出处:网络
Any way to tell a WebBrowser in C# to show the pages in HTML only? I\'m trying to make a web scraper and I don\'t need pictures that make the process way slower than necessary.开发者_运维知识库Why are

Any way to tell a WebBrowser in C# to show the pages in HTML only? 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? If you just want the core html of a page, then just do a WebRequest and get the response.


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.

0

精彩评论

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