Best way to transfer web page contents to a String?
What is the best way to transfer web page contents to a string variable?
I have a large list of items I want to look up on a web site. (The size of the list may vary)
The website is www.poxshop.com and already has the needed function calls in place, IE:
http://www.poxshop.com/rune/G'hern_Overlord/
http://www.poxshop.com/rune/boghopper/
(All I need are the credit values.)
What is the best way to transfer the contents of 100 + pages to a string variable or string array?
I did a search and found about half a dozen or so ways to get the contents of a web page, but I'm not shore which is the best way.
Re: Best way to transfer web page contents to a String?
Adding this module will allow you to download the source code of a webpage directly into a string variable (without having to save it to a file first).
http://www.vbforums.com/attachment.p...2&d=1165810051
Then you can just use it like:
vb Code:
MyString = GetURLSource("http://www.google.com/")
Re: Best way to transfer web page contents to a String?
Nice, thanks.
I'm on a 56k modem, is there another way to do it faster? Remember, I'm looking up 100 to 300+ pages at once.
Re: Best way to transfer web page contents to a String?
Quote:
Originally Posted by Tontow
I'm looking up 100 to 300+ pages at once.
That's not a good idea on a 56k modem to begin with. It will be real slow. And too many at once could disconnect you.
I would say the fastest might be the Winsock control, at least then you could do more than 1 page at a time.
But that requires you to know how to connect to a web server, parse the URL and set a GET request for that page.
I can help you with this a little later when I'm not busy.
Re: Best way to transfer web page contents to a String?
Hey
try Inet Control
and u want to download 100+ webpages string then
write script to get each pages url & pass with inet Control..
Jicks
Re: Best way to transfer web page contents to a String?
Dose anyone else have any input?