tags:

views:

68

answers:

1

is it possible to scrape all the text from a site that was navigated to by webbrowser control without looking at the source?

+3  A: 

You use the DocumentText property or the WebBrowser control.

This property is what holds the HTML of the site you have navigated to.

Update: (following comments)

If you want to parse the HTML and get the text parts of it, I suggest you use the HTML Agility Pack.

Oded
oded, i do not want to look at the html, i only want to look at the text that the user sees
I__
no i dont want to parse the html, i just want the same result as if you hit ctrl A and copy and paste all the text
I__
Um. That's what you will get by _parsing_ the HTML.
Oded
is there any easier way?
I__
Nothing I can think of.
Oded