how to get(webscrape) whatsapp stickers

257 Views Asked by At

i have successfully made a program to see whatsapp deleted messages algorithm is i get(webscrape all text messages from senders chat and put in a list and when sender deletes that text program sends that message which was deleted by sender but was there in our list

but problem is this only works with text messages how to webscrape (get a whatsapp sticker from chat and saved in our pc)? i tried finding stickers element and saving in different formats but it dosnt work it gives Attribute error: webelement does not have attribute png,jpg etc

sticker = driver.find_element_by_xpath("//div[@class='_3rlNI TC9NX _2Q_wE _2DGdv']//canvas[@class='_1guNH']")
sticker = driver.find_element_by_xpath("//div[@class='_3rlNI TC9NX _2Q_wE _2DGdv']//canvas[@class='_1guNH']").png
sticker = driver.find_element_by_xpath("//div[@class='_3rlNI TC9NX _2Q_wE 

_2DGdv']//canvas[@class='_1guNH']").jpg

can anyone help me?

0

There are 0 best solutions below