Skip to content
View Kemboiobed's full-sized avatar
💭
I may be slow to respond.
💭
I may be slow to respond.
  • 11:52 (UTC +03:00)

Block or report Kemboiobed

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Kemboiobed/README.md

from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.chrome.service import Service from selenium.webdriver.chrome.options import Options import time

Set up Chrome options

chrome_options = Options() chrome_options.add_argument("--user-data-dir=./User_Data") # Keep user data to avoid scanning QR code every time

Path to your ChromeDriver

chrome_driver_path = 'path/to/chromedriver'

Initialize the WebDriver

service = Service(chrome_driver_path) driver = webdriver.Chrome(service=service, options=chrome_options)

Open WhatsApp Web

driver.get('https://web.whatsapp.com')

Wait for the user to scan the QR code

input("Press Enter after scanning the QR code")

List of contacts to monitor

contacts = ["Contact Name 1", "Contact Name 2"]

def check_status(contact): try: # Search for the contact search_box = driver.find_element(By.XPATH, '//div[@contenteditable="true"][@data-tab="3"]') search_box.clear() search_box.send_keys(contact) search_box.send_keys(Keys.ENTER) time.sleep(2)

    # Check the status
    status = driver.find_element(By.XPATH, '//span[@title="online"]')
    if status:
        print(f"{contact} is online")
    else:
        print(f"{contact} is offline")
except Exception as e:

Popular repositories Loading

  1. Kemboiobed Kemboiobed Public

    Config files for my GitHub profile.

    2 1

  2. Okk Okk Public

    JavaScript 1

  3. Aviator-Predictor-Utility Aviator-Predictor-Utility Public

    Forked from Loketcenter/Aviator-Predictor-Utility

    Best prediction tool for Aviator, requests USB cable and PC for install on your device

    1

  4. REXEMPEROR REXEMPEROR Public

    Forked from franceking1/Flash-Md

    Feel Free To Use FLASH-MD, Remember To STAR🌟 The Repo After Forking

    JavaScript 1

  5. XLICON-V2-MD XLICON-V2-MD Public

    Forked from salmanytofficial/XLICON-V2-MD

    I'm XLICON-V2. A MultiDevice WhatsApp bot with rich features Created By SALMAN AMAD and Abraham Dwamena.

    JavaScript 1

  6. Classic-v3-BUG Classic-v3-BUG Public

    Forked from Samue-l1/Classic-v3-BUG

    JavaScript 1