0

I am having a hard time getting specific text from a webpage.
http://mbible.com/john/1-1.htm
OR
http://m.bible.cc/hebrews/1-3.htm (Whatever easier!)

I want to get the text infront of "KJV" label. ex: KJV: sometext. how can I get this "sometext"

tried this and didn't work.

'Dim htmlElements As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("a")
        'For Each el As HtmlElement In htmlElements
        '    ' Provide additional logic if necessary
        '    If Not el.GetAttribute("href").contains("kingjbible") And Not el.GetAttribute("style").Equals("color:#001320; text-decoration:none") Then
        '        TextBox1.Text = el.InnerText.ToString
        '    End If
        'Next
1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by beho86
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.