Get all links from Li tags on a web page from Li tag

u4jaanus
u4jaanus New Altair Community Member
edited November 2024 in Community Q&A
Hi,
Trying to get all the links in html li tag. any help please?
Tried few approach's. I am not getting any result. Process document or extract information did not work

Here is the sample data.

Need link in a tag in each <li>

<div><div class="container"></div><div><div class="catproducttitle"></div><div><h2>All Furniture Ranges</h2></div></div><div><ul class="subcategory-listing block-grid-xs-2 block-grid-sm-3 block-grid-md-4"></div><div><li class="block-grid-item"></div><div><a href="https://www.sonasbathrooms.com/en/bathroom-furniture/all-furniture-ranges/freya.html" title="FREYA"></div><div><div class="subcategory-item"></div><div><img src="https://www.sonasbathrooms.com/media/catalog/category/FREYA-Category.jpg" alt="FREYA" class=".img-responsive"></div><div><div class="subcategory-item__footer"></div><div><h2>FREYA</h2></div><div><p>Prices From <span><span class="price">€465</span></span></p></div><div></div></div><div></div></div><div></a></div><div></li></div><div><li class="block-grid-item"></div><div><a href="https://www.sonasbathrooms.com/en/bathroom-furniture/all-furniture-ranges/finland.html" title="FINLAND"></div><div><div class="subcategory-item"></div><div><img src="https://www.sonasbathrooms.com/media/catalog/category/FINLAND-50-dolphin-grey-handle-gold_01_820x1000x96dpi_353x380_1.jpg" alt="FINLAND" class=".img-responsive"></div><div><div class="subcategory-item__footer"></div><div><h2>FINLAND</h2></div><div><p>Prices From <span><span class="price">€525</span></span></p></div><div></div></div><div></div></div><div></a></div><div></li></div><div><li class="block-grid-item"></div><div><a href="https://www.sonasbathrooms.com/en/bathroom-furniture/all-furniture-ranges/malmo-ocean-blue.html" title="MALMO"></div><div><div class="subcategory-item"></div><div><img src="https://www.sonasbathrooms.com/media/catalog/category/MALMO-Category.jpg" alt="MALMO" class=".img-responsive"></div><div><div class="subcategory-item__footer"></div><div><h2>MALMO</h2></div><div><p>Prices From <span><span class="price">€450</span></span></p></div><div></div></div><div></div></div><div></a></div><div></li></div><div></ul></div><div></div></div>

Answers

  • u4jaanus
    u4jaanus New Altair Community Member
    any guide to learn for the solution would be great as well.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.