Web scrapping using Beautifulsoup

I am trying to extract data from “src=” and “alt=” from tag from the Flipkart.com

When I am doing inspect element I can see each tag contains the full path of the image source but when I am trying to extract this information with bs4 beautifulsoup I’m not getting the result as expected.

Here is my code: https://codeshare.io/5zVVvj

Please check my code!

Hey,
You won’t be able to scrape flipkart or amazon using beatuifulSoup, Since they have dynamic content, that can change attributes.
Use selenium or scrapy for this task.
Also in your code if you want to get those products list use this soup.find_all('img',{"class": "_1Nyybr"}) Since this class is common among all the images.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.