4

I am developing desktop application. I would like to grab remote html source. But remote page widely rendered by javascript after page load.

I'm searching for a few days but i could not find anything useful. I've studied and tried to apply the following suggestions. But I can get only base html codes.

WebBrowser Threads don't seem to be closing

Get the final generated html source using c# or vb.net

View Generated Source (After AJAX/JavaScript) in C#

Is there any way to get all data like html console's approach of firebug?

Thank you in advance.

Community
  • 1
  • 1
Kerberos
  • 1,228
  • 6
  • 24
  • 48

1 Answers1

0

What are you trying to do? A web browser will do more than just grab the HTML. It needs to be parsed (which will likely download further files) and rendered. You could use the WebKit C# wrapper [http://webkitdotnet.sourceforge.net/] - I have used this previously to get thumbnails of web pages.

Lee Willis
  • 1,552
  • 9
  • 14
  • For example html initial source like
    but this div fills data with javascript onPageLoad event. When grabs page with using WebClient results seems like
    I would like to get html's div with filled data.
    – Kerberos Jun 27 '14 at 09:12
  • So you want to tap into the browsers rendering engine. The only other HTML / C# thing I have come across that 'may' be of use is http://www.awesomium.com/ – Lee Willis Jun 27 '14 at 09:15