WebWhatsapp-Wrapper
WebWhatsapp-Wrapper copied to clipboard
Get profile image
How can I get the profile picture?
is possible ?
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.
have a look at #297
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.