WebWhatsapp-Wrapper icon indicating copy to clipboard operation
WebWhatsapp-Wrapper copied to clipboard

Get profile image

Open flpmarcos opened this issue 6 years ago • 3 comments

How can I get the profile picture?

is possible ?

flpmarcos avatar Jun 11 '18 22:06 flpmarcos

Yes; it’s possible, in the JavaScript layer this information is passed to contact object, however in the python layer the Contact object is not creating or using that information. You have 2 options: first, extend the Contact object to create the attributes that you want or you can simply use the _json_obj from Contact. That attribute have all JavaScript object and you can extract your information from it.

brunosoaresds avatar Jun 11 '18 23:06 brunosoaresds

have a look at #297

lukweb avatar Jun 20 '18 20:06 lukweb

Im looking to catch the part of the whatsapp code where the image gets loaded. I don't want to use the builtin methods to get images because includes making a network call which i CANT make with thousand contacts. I can see the image, and I'm sure I can get it getting the canvas image, but I'm looking for something more programmatic. Any hint is welcome.

erm3nda avatar Feb 08 '22 15:02 erm3nda