2

I tried to use GetStringAsync

using (var client = new HttpClient())
{
  var html = await client.GetStringAsync(url);
  richTextBox1.Text = html.ToString();
}

and DownloadString

System.Net.WebClient wc = new System.Net.WebClient();
string webData = wc.DownloadString(url);
richTextBox1.Text = webData;

But it doesn't give me full html document like Google Chrome F12. How can I get full html code of url using C#?

Need this url: http://poeplanner.com/ but it doesn't show me even a single table when Chrome F12 does.

Mosh Feu
  • 28,354
  • 16
  • 88
  • 135
Demonel
  • 97
  • 2
  • 9

1 Answers1

1

My guess is that the code you don't see is a code that added with javascript. So you need use a browser program to get this code too.

This app will run the javascript too and you can ask from it the final html.

If I'm right, try to use phantomjs.

Related question on PhantomJS

Community
  • 1
  • 1
Mosh Feu
  • 28,354
  • 16
  • 88
  • 135