images = driver.find_element(By.CSS_SELECTOR,'.rg_i.Q4LuWd')
count = 1
for image in images:
image.click()
time.sleep(3)
imgUrl = driver.find_element(By.CSS_SELECTOR,'.n3VNCb.KAlRDb').get_attribute("src")
urllib.request.urlretrieve(imgUrl, str(count) + ".jpg")
count = count + 1
'WebElement' object is not iterable
for image in images: 에서
images가 반복가능한 객체가 아니라 오류 발생
반복가능한 객체의 종류: 리스트, 딕셔너리, 문자열, range() 등등
element -> elements
images = driver.find_elements(By.CSS_SELECTOR,'.rg_i.Q4LuWd')
🧸