Programatically opening a web page - then extracting some info from the page

I would like to create a simple vb.net windows application that will once every hour-or-so will open a web browser to a specific page, and capture and store to a variable a specific value from the page.

The value is found in the page's source as part of an image link(SRC), but not shown on the page itself.

Any suggestions to point me in the right direction?
(Specifically opening the web page programatically and the extraction of the value within the page's source)

Thanks
Dale MassicottePresidentAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sara110Commented:
I am not sure , I understand you correctly or not, but it seems that you want to open a webpage in regular time, then you could use a timer and a line process.
 System.Diagnostics.Process.Start("http://www.yourpage.com")
and then another timer kill this process when it finished its work
but it is better that you open another form and close it instead of using a web page, but I am not sure what your project is exactly
0
prakash_prkCommented:
the following function reads all the html content from the URL

if u had some name or id for your variable you can get the URL using Regual expressions.

------------------------------------------------------------------------------------------------------

    Public Function GetHTML(ByVal Url As String) As String
        Try
            Dim request As HttpWebRequest = DirectCast(WebRequest.Create(Url), HttpWebRequest)
            Dim response As HttpWebResponse = DirectCast(request.GetResponse(), HttpWebResponse)

            Dim htmlContentStream As New StreamReader(response.GetResponseStream())
            GetHTML = htmlContentStream.ReadToEnd()

            htmlContentStream.Close()
            response.Close()

        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try
    End Function
---------------------------------------------------------------------------------------------------------------

Regards
Prakash
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.