Find text using Xpath with class (vb.net)



  • Hey guys ! This is on what I'm working on :

     Dim url As String = "http://brayket.byethost9.com/index.php?/shoutbox/"
        Dim web As New HtmlWeb()
        Dim doc As HtmlDocument = web.Load(url)
        Dim names As HtmlNodeCollection = doc.DocumentNode.SelectNodes("//span[@meriah     Console.WriteLine(names)
        System.Threading.Thread.Sleep(100000000)
    

    I'd like to write on the console everything that's between "" and Hope I'll find some help here 🙂



  •  Dim url As String = "http://brayket.byethost9.com/index.php?/shoutbox/"
        Dim web As New HtmlWeb()
        Dim doc As HtmlDocument = web.Load(url)
        Dim names As HtmlNodeCollection = doc.DocumentNode.SelectNodes("//span[@meriah 
    '**Place the code below to read each values between selected nodes.**
    
    For Each useAnyWantedWordHere in names
    console.writeline(userAnyWantedWord.InnerText & vbcrlf)
    Next
    Console.ReadLine()
    

    If you want to make it work with a textbox or richtextbox this is the code :

    For Each AnyWantedWord in names
    richtextbox1.AppendText(AnyWantedWord.InnerText & vbCrLF)
    Next
    


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2