Open fire17 opened 2 years ago
also changed SELECTORS IN init _ .py
which helped me login (after changing dir ())
_SELECTORS = {
'qrCode': "canvas[aria-label=\"Scan me!\"]",
'qrCodePlain': "div[data-ref]",
'QRReloader': 'div[data-ref] > span > div',
'mainPage': ".two",
}
If anyone could create a PR for this functionality, that would be great. I'll be reviewing PRs for the next few weeks.
Nice! I wonder what the huge eval string inside self.driver.execute_script()
is all about though. I suppose it is the script at https://github.com/open-wa/wa-automate-nodejs/blob/master/src/controllers/initializer.ts?
Hi everybody, first of all i'd like to thank @mukulhase for creating making such a great wrapper! I've been using it for a good while, but recently there has been a stop of maintenance,
with that here is my attempt to make a fix that will patch everything so basically theres this organization open-wa which does things very similar to here, except it seems it's more maintained, has extra features, and draws patches from the repo on loading, thus makes sure you dont need to update your core code to run nicely after whatsapp updates...
I've come to appreciate the fact that i dont have to rush for checking issues when something changes. just restart your server/code and the new patch will be used.
People who enjoy the work of the amazing people at open-wa who keep everything up-to-date should consider showing support and getting a proper licence
so heres the trick: overwite dir () func in wapi_js_wrapper.py (inside src/)
use the most updated method from open-wa/wa-automate-python
currently the entire function looks like:
this edit will effectively skip your wapi.js file and draw the most recent patch to run on whatsapp web
ps - if like me you would like to edit wapi.js to add more / make custom features, just add a file called pywapi.js in src/js right next to wapi.js (like this one open-wa/wa-automate-python/pywapi.js)) the patch and this file will be merged the start of the program
lemme know if this helped you! good luck and enjoy !!!