WebClient - Pull 'DOM Snapshot Data' vs 'Source'

痴心易碎 提交于 2019-12-11 20:52:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!