-
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!
-
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
-
By kil4h in forum ASP.NET
Replies: 3
Last Post: 11-08-2005, 04:52 AM
-
Replies: 150
Last Post: 03-04-2002, 05:40 PM
-
By Greg Rothlander in forum XML
Replies: 2
Last Post: 08-03-2001, 04:49 AM
-
By James in forum VB Classic
Replies: 2
Last Post: 02-21-2001, 11:47 AM
-
By Eng Heong in forum Web
Replies: 13
Last Post: 06-28-2000, 02:54 PM
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
|
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
|
Bookmarks