Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Getting HTML-code from a source using javascript

$
0
0

Hi,

I need to analyze a source (webpage(-s)). To be able to do this I need search the HTML-code  for specific  HTML-tags. I use a webbrowser object. After installing the object and using the specific url I can get to the main page, from there the user can click to view another page within the first page. The subpage I need to analyze uses javascript. Using the object I can reproduce the webpage, I can select the subpage and I can see the information I need. However I can not find the HTML-code in the object for that page to analyze it myself. I have no knowledge of javascript, but once I have the HTML-code for what is displayed I can analyze it (like analyzing a text-file with HTML-code). I tried to use the DocumentCompleted event generated by the object and then seach for the tags I need, but somehow I am searching in the toplevel page and not the subpage I am aiming for. I fully understand that I lack the required knowledge, but perhaps someone out there understands what I am looking for and will show me the way how to solve this. Maybe I can not find the correct property in the object where the HTML-text is stored, maybe this is not possible at all. I am able to extract HTML-code using IE or webdevelopment tools, but now I need it in an application without all kinds of human interaction. I feel this can be done using the webbrowser class, but I can not find out how. If anyone understands my question and answers this I would be grateful!


Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>