Home > Net >  C # how to obtain SHTML pages HTML source code
C # how to obtain SHTML pages HTML source code

Time:09-23

Want to climb a web page in c #, such as http://www.chinanews.com/world.shtml
Using the Internet method, such as WebClient, HttpWebRequest etc can't ah, get is the following:
\ n \ n \ n \ n<body> \ n \ n \ n \ n

Ask ace to solve

CodePudding user response:

Dynamic web pages how can get the source code

CodePudding user response:

Just need to get the parsed HTML, like a browser opens, "view page source"

CodePudding user response:

This is not the source code

CodePudding user response:

Using selenium

CodePudding user response:

The
reference 3 floor WQR1994 response:
were not the source

After this browser and open the "view page source" is not the same as the source of
I want to put down the inside of the news, this two days to a httpHelper, however, is studying, don't do not

CodePudding user response:

Because the WebClient, HttpWebRequest didn't join the browser information, can't climb the source code
  •  Tags:  
  • C#
  • Related