Write a program bulk download files, to analyze the HTML page is required to login to access, and download the relevant page is not required to login access, so steal a lazy, the program to set WebBrowser to edit mode, This allows you to copy the content you want to analyze from the browser window that is already logged in.
Setup method:
private void Mainform_load (object sender, EventArgs e) { this.webBrowser1.Navigate ("About:blank"); if (this.webBrowser1.Document! = null) { mshtml. IHTMLDocument2 doc = this.webBrowser1.Document.DomDocument as mshtml. IHTMLDocument2; if (doc! = null) { Doc.designmode = "On";}} }
"About:blank" is turned on by default, otherwise "webbrowser1.document = = null";
Doc.designmode = "On" is the edit mode, Doc.designmode = "Off" is the browse mode;
You need to add a reference:
It's only used here: MSHTML
====================== Document Information ===========================