get the title of an image from a webpage

  • Thread starter Thread starter kieran
  • Start date Start date
K

kieran

Hi,

I want to connect to a webpage, grap the contents of the page i.e.
index.html, then find a certain html line and identify the image
listed on that html line.

The image title changes every day but i seen it done in php where the
start of the line was listed in a variable and the end of the line was
listed in another variable and a regular expression was used to get
the image title in between. Something like this...


Start = '<IMG SRC="/folder1/images/';

End = '" BORDER=0 ALT="Today\'s Image">';

I am looking for a vb.net tutorial or some code example of how to do
this.

Any help greatly appreciated.
 
Kieran,

This is a frustrating job. In the next version this will be simplified, now
you need for that the webbrowser and mshtml. (And as forever, do not set an
import to mshtml, it freezes your IDE because of the almost unending amount
of interfaces)

webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default.aspx?scid=kb;EN-US;311284

mshtml
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/hosting.asp

I hope this helps a little bit?

Cor
 

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

Back
Top