且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

与网页在C#交互

更新时间:2023-02-07 20:32:31

我会使用的Html AgilityPack 一>解析HTML,然后做职位和与 HttpWebRequest的适当的GET

I'd use Html AgilityPack to parse the html and then do POSTs and GETs appropriately with HttpWebRequest.

虽然有可能使用WebBrowser控件来模拟点击和导航你会得到更多的控制与HTML AgilityPack和HttpWebRequest的关于什么被发送

While it may be possible to use the WebBrowser control to simulate clicks and navigation you get more control with Html AgilityPack and HttpWebRequest regarding what gets sent