Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 C# 提取 DOM 快照数据(相当于在 Chrome 中执行检查元素)。这是我的代码:
string url = "http://someurl"; HtmlDocument htmlDoc = new HtmlDocument(); htmlDoc.Load(new WebClient().OpenRead(url)); this.html = htmlDoc;
问题是它只是拉取源,而不是 DOM 快照。如何在 C# 中提取 DOM 快照?