Hi, I would like to extract a link and some text information from a web page using webclient.
The link to extract would be:
and the text in :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>
How can I extract the link and text? The link is always the only link with more than 50 characters on the page.Code:<title>This is the title</title>
I'm extracting the html code with:
Thank youCode: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




Reply With Quote
