Hi, guys,
I am scraping a directory site. I would like to pull every external link that goes to the listed company's site, which is in a green button (<a href="TARGET URL HERE" target="_blank" rel="nofollow" class="button-link btn btn-green-sl btn-sm sl-ext">Visit Website<span class="sl-ext"><span class="element-invisible"> (link is external)</span></span></a>). But each profile page has other links, and the link extractor is pulling them as well. How do I just get the links with (in this case) a green button?
I am scraping a directory site. I would like to pull every external link that goes to the listed company's site, which is in a green button (<a href="TARGET URL HERE" target="_blank" rel="nofollow" class="button-link btn btn-green-sl btn-sm sl-ext">Visit Website<span class="sl-ext"><span class="element-invisible"> (link is external)</span></span></a>). But each profile page has other links, and the link extractor is pulling them as well. How do I just get the links with (in this case) a green button?