<div class="someClass">
<a href="href">
<img alt="some" src="some"/>
</a>
</div>
I want to extract the source (i.e. src) attribute from an image (i.e. img) tag using BeautifulSoup. I use bs4 and I cannot use a.attrs['src'] to get the src, but I can get href. What should I do?