|
-
Jun 27th, 2012, 10:17 AM
#1
Thread Starter
Lively Member
httpwebrequest
I can use this to get the html source of a website.
But how do you get the actual text which would be displayed on screen AND not the full html of the website. So it would only retreive the text as it would be seen after the website loaded in your browser
-
Jun 27th, 2012, 10:28 AM
#2
Re: httpwebrequest
Browers render HTML, this is not something you can replicate with ease. If you want a particular piece of information from the HTML then you will have to do some string manipulation to get it. With that being said, you might find it easier to load the web page you are retrieving into the WebBrowser control, then if you know the element/id you are looking for it won't be too hard to loop though and get it. You haven't provided much information on what you are trying to do so all I can do is suggest general methods to do what you want.
-
Jun 27th, 2012, 12:16 PM
#3
Thread Starter
Lively Member
Re: httpwebrequest
trying to get websites/links from a directory search results, but the website using javascript to put the results on the screen when the browser has loaded. so if you look at the html there no urls but if you look at the text there are links.
Yes i tried your method using innertext BUT its very slow
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|