I'm trying to scrape shopee product names, prices and images. However, I can't seem to extract the images. Is it because of the html? I just can't seem to find the class for images in dataImg
import pandas as pd
from selenium import webdriver
from bs4 import BeautifulSoup
driver =webdriver.Chrome('chromedriver')
products=[]
prices=[]
images=[]
driver.get('https://shopee.co.id/search?keyword=laptop')
content=driver.page_source
soup=BeautifulSoup(content)
soup
for link in soup.find_all('div',class_="_3EfFTx"):
print('test')
print(link)
for link in soup.find_all('div',class_="_3EfFTx"):
#print(link)
dataImg=link.find('img',class_="_1T9dHf V1Fpl5")
print(dataImg)
name=link.find('div',class_="_1Sxpvs")
#print(name.get_text())
price=link.find('div',class_="QmqjGn")
#print(price.get_text())
if dataImg is not None:
products.append(name.get_text())
prices.append(price.get_text())
images.append(dataImg['src'])
df=pd.DataFrame({'Product Name':products,'Price':prices,'Images':images})
df