Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15067

How to extract a link and some text from webpage with Webclient

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

<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 the text in :
Code:

<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:
Code:

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

Thank you

Viewing all articles
Browse latest Browse all 15067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>