|
-
Oct 22nd, 2006, 11:26 PM
#1
Thread Starter
Member
Download text from web page
I am trying to get VB 2005 to be able to download the text from a web page, either as a string or a file, to later be searched. I have found lots of similar questions but all are of little help.
I've tried using the webbrowser control and the Document.Body.InnerText property. Problems are: The webbrowser.documentcompleted event triggers multiple times for multiple frames. If I use webbrowser.readystate, I need to use application.doevents to get the page to load. This seems to use lots of resources and keeps allocating memory. I can't get the memory released, but it does release when the app is minimized.
I have also tried the My.Computer.Network.DownloadFile and webclient.DownloadString but these don't download the proper information for URLs such as: http://www.amazon.com/Microsoft-Visu...TF8&s=software.
I'm thinking the webbrowser control is the way to go, I just don't like the constant allocation of memory.
Greg
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
|