Skip to main content

A package that automates sending messages through WhatsApp Web

Project description

API for WhatsApp Web Automation

Generic badge

Send WhatsApp messages programmatically, using only 3 lines of code.

A python package that helps you automate sending messages through WhatsApp Web 😎

Maintenance GitHub Release CodeFactor

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 ...

wapp_driver_scrnsht

How to install ??

pip3 install wappdriver

PyPI

MIT LICENSE


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:

made-with-python

Make sure to have matching versions of Chrome Browser and Chrome Driver. I recommend to use the latest version of both, for the best performance


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wappdriver-0.2.2.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

wappdriver-0.2.2-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page