Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agentkyo/whatsappwebapi
Automate your WhatsApp Web interactions with this Python-based Selenium project. Utilizing Microsoft Edge WebDriver, it supports tasks like sending messages, handling attachments, and managing unread messages. Perfect for developers seeking to extend WhatsApp Web's capabilities programmatically on Day 2 of ongoing development
https://github.com/agentkyo/whatsappwebapi
chatbot edgedriver python selenium-python selenium-webdriver selenium-webdriver-python web-automation webdriver whatsapp whatsapp-bot whatsapp-web
Last synced: about 1 month ago
JSON representation
Automate your WhatsApp Web interactions with this Python-based Selenium project. Utilizing Microsoft Edge WebDriver, it supports tasks like sending messages, handling attachments, and managing unread messages. Perfect for developers seeking to extend WhatsApp Web's capabilities programmatically on Day 2 of ongoing development
- Host: GitHub
- URL: https://github.com/agentkyo/whatsappwebapi
- Owner: agentkyo
- Created: 2024-05-06T21:36:30.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-08T03:26:37.000Z (7 months ago)
- Last Synced: 2024-10-14T05:40:51.207Z (about 1 month ago)
- Topics: chatbot, edgedriver, python, selenium-python, selenium-webdriver, selenium-webdriver-python, web-automation, webdriver, whatsapp, whatsapp-bot, whatsapp-web
- Language: Python
- Homepage:
- Size: 9.68 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WhatsApp Web Automation Project
## Description
This project is a WhatsApp Web automation application that uses Selenium and Microsoft Edge WebDriver to interact with WhatsApp Web. The code automates various tasks such as sending messages and attachments, reading unread messages, and interacting with contacts.## Current Progress
- **Day 2 of Development**
- The code now supports initializing the Edge driver with a specified user profile, allowing session persistence between browser launches.
- Implemented functionality for login via QR Code, capturing and displaying the QR for manual authentication.
- Functions to send text messages and attachments to specific contacts are operational.
- Ability to fetch and display unread messages, as well as retrieve the message history from specific conversations.## Technologies Used
- Python 3.8+
- Selenium 4
- WebDriver Manager
- Microsoft Edge WebDriver
- Matplotlib for QR Code visualization
- `dotenv` library for environment variable management## Setup
1. Clone this repository.
2. Install the necessary dependencies using `pip install -r requirements.txt` (assuming a requirements file is present).
3. Set the environment variables `PATH_TO_YOUR_EDGE_DRIVER` and `PATH_TO_YOUR_BROWSER_PROFILE_DIRECTORY` to configure the driver path and user profile directory, respectively.## Usage
- Run the main script to start the automation. The WhatsApp Web user interface will open, and the script will wait for you to scan the QR Code when necessary.
- Use the available functions in the `WhatsApp` class to perform various operations such as sending messages or attachments.## Contributions
Contributions are welcome! Please create a pull request to propose improvements or add new features.## License
Distributed under the MIT License. See `LICENSE` for more information.