open-wa / wa-automate-python

💬 🤖 The most advanced Python whatsapp library for chatbots with advanced features. Be sure to ⭐ this repository for updates!
Other
342 stars 74 forks source link

Fix Remote headless #35

Closed a5r0n closed 4 years ago

a5r0n commented 4 years ago
roigreenberg commented 4 years ago

Hi. Can you please explain what is this "headless" state? will it reduce the selenium CPU usage?

a5r0n commented 4 years ago

@roigreenberg

will it reduce the selenium CPU usage?

Yes, because it's not started the XVFB - X virtual sever

PR is relevant for remote, when you run selenium in a separate container, just start selenium container with -e START_XCFB=false and WhatsAPIDriver(headless=True) and you ready.

roigreenberg commented 4 years ago

I'm using containers, so it sounds great, but how do I get the QR?

a5r0n commented 4 years ago

https://github.com/open-wa/wa-automate-python#4-get-the-qr-in-one-of-these-ways