开发者

html agility package

开发者 https://www.devze.com 2023-04-04 02:16 出处:网络
i am trying to retrieve a certain response, i have the request and im loading it into the html document this is the code:

i am trying to retrieve a certain response, i have the request and im loading it into the html document this is the code:

开发者_运维技巧

HtmlWeb hw = new HtmlWeb(); HtmlDocument doc = hw.Load("Some URL");

the problem is that upon accessing the url in my browser and parsing the same url using the form above, im retrieving almost the same page, but some content is missing. this might be due to the time needed to retrieve the values(POSSIBLY), what can i do inorder to make sure i retrieve the same results as in the browser! this is top urgent and vital! Please ASSIST ME!


Compare the source HAP-parsed source with the source in your browser.

File.WriteAllText(*some path to file*, hw.DocumentNode.OuterHtml);
0

精彩评论

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