Get info from webpage via webbrowser VB

Posted on 2011-05-13
Medium Priority
Last Modified: 2012-05-11
On the webpage theres code like this

<DT>Number of dogs: </DT>
<DD id=r_dogs></DD>
<DT>Number of cats: </DT>
<DD id=r_cats></DD>

on the page it shows the value of the variables, but in the source it just says id=r_dogs etc..

is there anyway to get the value of r_dogs without  copying the text once its visible on the page?

ie is there something like this

        Set HTML = Form1.WebBrowser1.Document
        MsgBox HTML.All.Item("r_dogs").Value  ? (note this doesnt work lol)

Question by:bail3yz
LVL 25

Accepted Solution

Luis Pérez earned 2000 total points
ID: 35753250
If you use WebBrowser, in WebBrowser1.Document you get a copy of the rendered HTML result, so it's not possible to get the value of r_dogs, but only the rendered text. You can't access to programatical source of the page.
LVL 20

Expert Comment

ID: 35756796
What is the url of the page in question ?

Author Comment

ID: 35757906
the url is a paid site, so you can not view the page I need assistance with unless you have a paid membership unfortunately

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question