i am trying to download pictures from a site. I figured out that the problem why i cant find the picture URL is immediatelly in the beginning of the code.
I have a problem with that urlopen is downloading a diffrerent HTML than i get in browser.
The site is here. When i look at HTML in browser, i can see this part:
<a href="#" data-trigger="cmg-rotate-big">
<img src="/image/product/eca412b9-9484-4046-8bee-8400fde1d5fe/?width=400" alt="" data-cm-index="0" style="width: 400px; height: 400px; margin-left: 0px; opacity: 1;">
<img src="/image/product/014a128e-fa7b-4817-9d76-7bdf296de8de/?width=400" alt="" data-cm-index="1" style="width: 0px; height: 400px; margin-left: 200px; opacity: 0.5;">
</a>
But by the code
text = urllib2.urlopen(url).read()
soup = BeautifulSoup(text, "html.parser")
print(soup)
the same part is only
<a data-trigger="cmg-rotate-big" href="#">
<img alt="" data-cm-index="0" src=""/>
<img alt="" data-cm-index="1" src=""/>
</a>
So i can extract the SRC of the image because its missing.. where is the problem please?
Thank you!