C# library similar to HtmlUnit

后端 未结 5 690
一向
一向 2021-01-07 05:39

I need to write standalone application which will \"browse\" external resource. Is there lib in C# which automatically handles cookies and supports JavaScript (through JS is

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-07 06:15

    The HtmlAgilityPack is specifically for parsing HTML. You can use the WebRequest class in the .NET Framework to handle communication and cookies.

    See my blog entry on Web scraping in .NET. This won't answer all your questions, but will get you part of the way there.

提交回复
热议问题