I'm using selenium python to download several images from a chat in whatsapp web.
code:
images = driver.find_elements_by_class_name('_22Mb1')
for image in images:
sticker = image.get_attribute('src')
url.urlretrieve(sticker)
but I get this error
urllib.error.URLError: <urlopen error unknown url type: blob>
How can I solve it? I'm also fine with different methods (possibly with selenium).
Ps:
I would also like to save the images in png format, is there a way to do that?