get value from htmlnode RRS feed

  • Question

  • Hello

    Use the following code to fetch the geological number of a country
    Put the country name in the txturl.text
    Country data and code number from the site table to my program are shown
    The code works fine though

    I want to search inside the htmlnode  by name of the classnot by id

    and get line 1 in table with all node in  ====> "id="woeid_results_table"

    I want to fetch separate data from the state on its own with the code alone

     For example, we put the name of the city (Toscana )

     Dim webreq As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://woeid.rosselliot.co.nz/lookup/" & txtURL.Text)
            Dim webres As System.Net.HttpWebResponse = webreq.GetResponse
            Dim sr As System.IO.StreamReader = New System.IO.StreamReader(webres.GetResponseStream)
            Dim docStr As String = sr.ReadToEnd
            Dim HAPdoc As New HtmlAgilityPack.HtmlDocument
            Dim HAPnode As HtmlAgilityPack.HtmlNode
            HAPnode = HAPdoc.GetElementbyId("woeid_results_table")

    Saturday, April 14, 2018 4:42 PM

All replies