In a form, I'll perform an image search on Bing (in the background) like this:
titulo.Text = "sou doador"
string minhaBusca = titulo.Text + " app";
minhaBusca = "http://www.bing.com/images/search?q=" + minhaBusca;
Then I want to get the source link from the first 3 images, for this I need to search the source code for:
.jpg
or .png
.
I know there is a pattern on the Bing page, that the image link is within a item
div:
<div class="item"><a href="http://vmulher4.vila.to/interacao/4004739/doacao-de-sangue-eu-sou-um-doador-e-voce-57209-1.jpg" class="thumb" target="_blank" h="ID=images,5012.1">
How do I get the three links from href
and store them in an array or variable? And to display them on my form?