gvrkiran / whatsapp-public-groups Goto Github PK
View Code? Open in Web Editor NEWCode to get data from WhatsApp public groups
Code to get data from WhatsApp public groups
Hi,
I want to use the python code for joining the group. I run the code, the code successfully enters to my account and clicks on join. But when a pop up shows up, the code gives me this error:
<_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'> clicked join button Ckz9n9buXdr5bf1dcOvyY3 FfF Infogruppe (Gr 2 OS) <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'> sleeping for 26 Traceback (most recent call last): File "joinWhatsappGroups.py", line 59, in <module> group_info = driver.find_element_by_css_selector(".popup-body"); File "C:\Users\lap-adm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 598, in find_element_by_css_selector return self.find_element(by=By.CSS_SELECTOR, value=css_selector) File "C:\Users\lap-adm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element 'value': value})['value'] File "C:\Users\lap-adm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\lap-adm\AppData\Local\Programs\Python\Python37-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".popup-body"} (Session info: chrome=75.0.3770.100)
I think it's because of an update in whatsapp html template or something that it can not find the pop up and close it and continue. How can this be solved?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.