M
Mattia Fanti
Guest
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/downlo...ecef7154cd993703d56aefcf9f1ece7b99219db52bd/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("320YouTube")
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
Continue reading...
The link to extract would be:
<a class="btn btn-success btn-lg" href="https://arnold.ytapivmp3.com/downlo...ecef7154cd993703d56aefcf9f1ece7b99219db52bd/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("320YouTube")
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
Continue reading...