How extract text from sourcepage ?

prologikus

Member
Joined
Nov 9, 2012
Messages
16
Programming Experience
Beginner
Hi guys, how i can extract a text from a sourcepage

the text i want to extract is in this code :

<li><a href="http://sitizens.com/domain/reiners-bonsai-blog.blogspot.com" target="thesitedude" >reiners-bonsai-blog.blogspot.com<i class='icon-chevron-down icon-white'></i></a></li>
red text* how i can extrat it ?


If want full of sourcepage download this
 

Attachments

  • sourcepage.txt
    7.5 KB · Views: 40
Load it into a WebBrowser and use the Document property to get that A element and retrieve its InnerText.
 
This code gets the first A element in document and gets its InnerText:
Dim s = web.Document.GetElementsByTagName("a")(0).InnerText
 
Just replace the 0 with 2.
 
Back
Top