{"id":15046323,"url":"https://github.com/saizk/pywhapbot","last_synced_at":"2025-10-26T19:31:21.385Z","repository":{"id":57458505,"uuid":"362117448","full_name":"saizk/pywhapbot","owner":"saizk","description":"WhatsApp Web API Wrapper for Chrome, Firefox, Opera, Brave and Edge.","archived":false,"fork":false,"pushed_at":"2021-11-07T00:31:33.000Z","size":299,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T22:51:15.165Z","etag":null,"topics":["selenium","whatsapp","whatsapp-bot","whatsapp-web"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saizk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-27T13:13:20.000Z","updated_at":"2022-06-06T11:46:36.000Z","dependencies_parsed_at":"2022-09-09T23:11:37.676Z","dependency_job_id":null,"html_url":"https://github.com/saizk/pywhapbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saizk%2Fpywhapbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saizk%2Fpywhapbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saizk%2Fpywhapbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saizk%2Fpywhapbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saizk","download_url":"https://codeload.github.com/saizk/pywhapbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238394323,"owners_count":19464583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["selenium","whatsapp","whatsapp-bot","whatsapp-web"],"created_at":"2024-09-24T20:52:59.485Z","updated_at":"2025-10-26T19:31:21.047Z","avatar_url":"https://github.com/saizk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![whapbot_logo](https://raw.githubusercontent.com/saizk/pywhapbot/master/images/whapbot.png)\n![PyPI version](https://img.shields.io/pypi/v/pywhapbot)\n\nWhatsApp Web API Wrapper for Chrome, Firefox, Opera, Brave and Edge.\n\n## Installation\n```Python\npip install pywhapbot\n```\n\n## Features\n+ Automate the download of Selenium drivers\n+ Send messages by phone number\n+ Store WhatsApp Web sessions in all the browsers. (Edge only available on Windows)\n\n## Simple Usage\n\n```Python\nfrom whapbot import WhapBot\n\nfrom autoselenium import Driver\n\nwith WhapBot('chrome', root='drivers') as bot:\n    bot.set_window_position(420, 420)\n    bot.send(\"+34123456789\", \"Hello world!\")\n    bot.refresh()\n\n```\n\n## More advanced example\n\n```Python\nimport time\nfrom pywhapbot import WhapBot\n\nwhapbot = WhapBot(\n    browser=\"firefox\",\n    driver_path=\"drivers/geckodriver.exe\",\n    profile_path=\"profiles/firefox-profile\",\n    proxy=\"169.210.345.10:4567\",\n    kiosk=True  # kiosk mode (not supported on opera)\n)\nwhapmsgs = [(\"+34696969420\", \"Open!\"),\n            (\"+34696942069\", \"Source!\")]\n\nwith whapbot as bot:\n\n    for idx, (phone, message) in enumerate(whapmsgs):\n        bot.send(phone, message, timeout=15, retries=5)  # forces log\n        bot.screenshot(f\"whapbot-{idx}.png\")\n        print(f\"{idx + 1}/{len(whapmsgs)} messages sent\")\n\n    time.sleep(120)\n\n    for phone, message in whapmsgs:\n        bot.open_chat_by_phone(phone)\n        if bot.get_last_message_status() not in [\"Read\", \"Leído\"]:\n            bot.send(message)\n```\n\n## Contribute\nWould you like to contribute to this project? Here are a few starters:\n- Improve documentation\n- Add Testing examples\n- Bug hunts and refactor\n- Additional features/ More integrations","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaizk%2Fpywhapbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaizk%2Fpywhapbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaizk%2Fpywhapbot/lists"}