Results 1 to 6 of 6

Thread: Best way to transfer web page contents to a String?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    172

    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.

  2. #2
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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:
    1. MyString = GetURLSource("http://www.google.com/")

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    172

    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.

  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  5. #5
    Junior Member Jicks's Avatar
    Join Date
    Sep 2006
    Posts
    30

    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

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 2006
    Posts
    172

    Re: Best way to transfer web page contents to a String?

    Dose anyone else have any input?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width