Open Legedith opened 4 years ago
Do you want to return the actual image(.jpg) or the link? Because sending the image would mean downloading it and then attaching it to send. Do you have any other approach in mind?
I want the image. I had this approach in mind:
The reason I want the actual image instead of just the URL is sometimes a person's phone's internet is terribly slow where as at their home, the system running WhatsApp web would have considerable speed. So all the data heavy task of searching the image would be handled by the pc since once we attach the image, WhatsApp will automatically reduce its size to mere kbs
Ok! I am confused from the 6th point, how are we going to select the image, because the file systems would be different in different OS. I was thinking that Copying and Pasting(in the message box) the image also works on Whatsapp web. I'll try both
Hey! I'm stuck at this part, I've downloaded the image to the CWD, but I am unable to send it. Do you have any ideas? I've tried copying and sending the image(didn't work), I'm trying to attach it and send the image but not able to figure out the "attach" button's id/class/css.
Edit: I got around the attach(clip icon) button and selecting the photo/video option, now the problem is selecting the image to upload it. As every OS has a different FileSystem how can we generalize it?
I think Beautiful Soup 4 would be best for this
@singleparadox Can you elaborate on the approach?
Beautiful Soup 4 for mining the image/text data since it does not involve simulating user interaction. However, I am not sure what to do with that file system issue.
Ok, but I already have found a way to get the image just the uploading part is remaining.
Return the first image from google image search