DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    4

    Shortest VB6 HTML scrape code

    Hello all. I was wondering if anyone has some insight as to the easiest (least code) way to accomplish an equivalent of the following using VB6:

    #---begin python code---

    import urllib
    data = urllib.urlopen("http://www.google.com").read()
    print data

    #---end python code---

    In case this isn't self explanatory, these three lines of python code will fetch the HTML source of a page and print it to the screen.

    So far, the things that I can think of are:
    winsock, wininet, asyncread, XMLHTTPRequest

    Thanks in advance!

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    XMLHTTPRequest is pretty straightforward. There's also the OpenURL method of the Internet Transfer control.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. ASP.NET > Image Button HTML result code
    By kil4h in forum ASP.NET
    Replies: 3
    Last Post: 11-08-2005, 04:52 AM
  2. .NET equals Efficiency
    By Kevin in forum .NET
    Replies: 150
    Last Post: 03-04-2002, 05:40 PM
  3. Why is XML/XSL so slow when creating HTML code?
    By Greg Rothlander in forum XML
    Replies: 2
    Last Post: 08-03-2001, 04:49 AM
  4. Replies: 2
    Last Post: 02-21-2001, 11:47 AM
  5. Scrambing html source code
    By Eng Heong in forum Web
    Replies: 13
    Last Post: 06-28-2000, 02:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links