I am trying to get the link (href) off a website. The element is:
<a class="overlay no-outline" href="/photos/28716729@N06/2834595694/" tabindex="0" role="heading" aria-level="3" aria-label="puppy by mpappas83" data-rapid_p="61" id="yui_3_16_0_1_1477971884605_5513"></a>
First I am trying to match the class "overlay no-outline"
.
But notice that it has a space, so the select()
method is treating it like they are two different selectors instead of one.
imgElem= soup.select('.overlay no-outline') #attempt
Does anyone know how would I be able to achieve this?
The website is at www.flickr.com