I have an HTML string that holds sets of list items. I want to extract the image url and the correspondent href value from <li></li> sets and use these values as variables for later.
<img src="./season/123434mango.jpg" width="180" height="148"
alt="mango season" class="png">
<a href="/mango/" class="corners"> </a>
example of <li></li> set:
<li>
<img src="./season/123434mango.jpg" width="180" height="148"
alt="mango season" class="png">
<a href="/mango/" class="corners"> </a>
<div class="thumbnail_label">ok</div>
<div class="details">
<div class="title">
<a href=
"/mango/"> mango</a>
<span class="season">2</span>
</div>
<ul class="subject">
<li>read</li>
</ul>
<ul class="sub-info">
<li class="location">Europe</li>
<li class="price">2</li>
</ul>
</div>
</li>