问题
I'm trying to pull the DOM Snapshot Data (equivalent to doing an Inspect Element in Chrome) using C#. Here is my code:
string url = "http://someurl";
HtmlDocument htmlDoc = new HtmlDocument();
htmlDoc.Load(new WebClient().OpenRead(url));
this.html = htmlDoc;
The issue is that it is just pulling the source, not the DOM snapshot. How can I pull the DOM snapshot in C#?
来源:https://stackoverflow.com/questions/13939532/webclient-pull-dom-snapshot-data-vs-source