This is the html code in page.
Code:
/html/body/section/section/section/article/a/figure/picture
<picture>
<source media="__" srcset="Actual link for image">
<img style="__" data-src="Image link"
</picture>
I am using below to fetch images.
Code:
for img in soup.findAll('img', attrs={'data-src'}):
img['src'] = img['data-src']
return soup
Above doesn't work, but html has the link to the image in .png extension.
How do i make it work