[vb.net]How to extract a link and some text from webpage with Webclient RRS feed

  • Question

  • Hi, I would like to extract a link and some text information from a web page using webclient.
    The link to extract would be:

    <a class="btn btn-success btn-lg" href="https://arnold.ytapivmp3.com/download/bTxfcINRwXU/mp3/320/1602976370/4c0175cff8ea7e09d5a47ecef7154cd993703d56aefcf9f1ece7b99219db52bd/1" rel="nofollow noopener">Download MP3</a>

    and some text in : 
     <title>This is the title</title>

    How can I extract the link and text? The link is always the only link with more than 50 characters on the page.
    I'm extracting the html code with:
    Dim request As WebRequest = WebRequest.Create("https://www.320youtube.com/v10/watch?v=i_wnFX5WPv4")
            Dim response As WebResponse = request.GetResponse()
            Dim data As Stream = response.GetResponseStream()
            Dim html As String = String.Empty
            Using sr As StreamReader = New StreamReader(data)
                html = sr.ReadToEnd()
                RichTextBox1.Text = html
            End Using

    Thanks, Mattia
    Sunday, October 18, 2020 12:38 PM