A package that automates sending messages through WhatsApp Web
Project description
API for WhatsApp Web Automation
Send WhatsApp messages programmatically, using only 3 lines of code.
A python package that helps you automate sending messages through WhatsApp Web 😎
It's very simple to use
import wappdriver as wa
bot = wa.WappDriver()
bot.send_message(to='aahnik',msg='Hi ! sent by a bot :-p ')
# the recipients name must be saved in your contacts ...
How to install ??
pip3 install wappdriver
WARNING ⚠️
WhatsApp does not allow you to login into the same account from multiple chrome tabs. So make sure to close any chrome tab which has WhatsApp Web open, before executing the following line when your session cookies(data for automatic login, without requiring you to scan QR code multiple times) are saved in your current directory.
bot = wa.WappDriver()
Not doing so may lead to errors or the program may hang.
You will be required to scan the QR Code for the first time only, thereafter the data saved within the wappDefaultSession
sub-directory will be used for automatic login. You can delete this folder to delete all cookies.
Requirements:
Make sure to have matching versions of Chrome Browser and Chrome Driver.
Special Thanks to @VISWESWARAN1998 I learned a lot from his repo and had initially started working on it. But as my PRs were not accepted as my needs were different, I created a seperate project totally independent from that repo.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wappdriver-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d87912e53c136b99d4d27d2b80bb334db3037527b054f76c35172d6abe8eebc |
|
MD5 | 37fc929ca6fec37d49a36eab1ce39a7c |
|
BLAKE2b-256 | 1805d694526f6e5fc14a2e3e2c61f70c051697636b8e33705031c4089c260465 |