Results 1 to 3 of 3

Thread: [RESOLVED] parsing an html file

Threaded View

  1. #1

    Thread Starter
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Resolved [RESOLVED] parsing an html file

    iam working on a small applic that extracts the last person who has scrapped in my scrapbook

    the saved html page should explain everything abt scraps and scrapbook etc
    i also attached a sample screenshot with the required link circled in the screenshot...

    i tried the following but din work:

    VB Code:
    1. Dim PosEnd As Long
    2.         Dim PosStart As Long
    3.         PosStart = InStr(WebBrowser1.Document.body.innerHTML, "<a class="P" href="/Profile.aspx?uid=")
    4.     ....

    this will not work as the match string contains quotes

    and one more thing to note that here i have scrapped myself hence the uid=....(19 digit number) is the same everywhere which does not happen in a normal scenario.

    i have an inetcontrol that is loading the page .i am using
    VB Code:
    1. WebBrowser1.Document.getElementsByTagName("b").Item(i + 2).innerText....
    to parse other elemnts but this one seems to be too complex

    any ideas anyone??
    Last edited by litlewiki; Apr 13th, 2007 at 02:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width