Default image

lecadmintor

whatsapp chat scraping

sadadd from selenium.webdriver import Chrome from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import NoSuchElementException import time URL = "" browser = Chrome() browser.get( URL ) time.sleep(50) invalid_contacts = ['a'] while True: browser.find_element_by_xpath( ".//button[contains(@class, '_1x_c3 _35Ob4 kQJNA _2-5II _338za')]").click() time.sleep(20) messages =…