Screen Scraping with VB.Net and IE.

G

Guest

Hello Everyone and thanks for your help in advance. I am working on an
application that will be used to screen scrape a site utilizing the IE
webbrowser and VB.Net. Due to some idiosyncracies in the page to be
scraped, the IE approach appears to be the best rather thant the native .Net
classes. Here is the code I have working:

Dim URL As String = "www.yahoo.com"
Dim IE As New InternetExplorerClass
Dim wb As IWebBrowserApp = CType(IE, IWebBrowserApp)
wb.Visible = True
wb.Navigate(URL, "", "", "", "")

This code successfully opens and IE window. However, I need to be able to
access the HTML in the document and cannot seem to figure out how to do this.
Any help on this topic would be greatly appreciated. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top