Get info from webpage via webbrowser VB

Posted on 2011-05-13
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

    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 24

    Expert Comment

    What is the url of the page in question ?

    Author Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    Article by: Martin
    Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now