Tithibots / tithiwa

Automate Web WhatsApp with selenium in python.
MIT License
24 stars 22 forks source link

Headless tithiwa challenge or direct javascript runable (May be the most amazing challenge about Web-Whatsapp) #64

Open NavpreetDevpuri opened 3 years ago

NavpreetDevpuri commented 3 years ago
  1. How Web-WhatsApp communicates with our mobile? it seems like it creates sockets in javascript and sends requests to our mobile.
  2. Can we manually replicate those communications between Web-WhatsApp and our mobile? yes, it is possible we can somehow create the exact same sockets in our python code for example I did in that LyndaDownloader I just communicate with the server the same way a browser does, saying something like "hi server see I am a browser and I am holding session cookies(in code: I am sending header=h containing cookies), can you please provide me video links"

We can imagine that it seems possible but we need to understand Web-Whatsapp a little deeply If we able to do that then we don't need to open selenium and even we can create the same sockets in almost any programming language like java..etc it will be very lightweight, even able to run easily on our mobiles

At least we know some javascript code is executed on the browser to do something for example sending a message and if we understand how that javascript is running then we just need to run javascript code to perform automation i.e no need to click on things or manually doing automations