Skip to main content

wappdriver

API for WhatsApp Web Automation

Wondering how to send WhatsApp messages using Python using only three lines of code? You have come to the right place!

Tests Maintenance GitHub Release CodeFactor MIT LICENSE made-with-python

Usage 😎

wappdriver is a python package that helps you automate sending messages through WhatsApp Web.

It enables you to send WhatsApp messages programmatically, using only three lines of code.

It is very simple to use

from wappdriver import WhatsApp
with WhatsApp() as bot:
    bot.send('aahnik',  # name of recipient
             'hi send by a bot')  # message
# The name of the recipient should be in your contacts

Read full documentation 📖 to learn how to send emojis, media and files.

Installation ⏬

You can easily install wappdriver from the PyPI.

pip install wappdriver

For Mac and Linux, you may need to use pip3.

Requirements 🧑‍💻

You must have the following installed in your system for wappdriver to work.

Make sure to have matching versions of the Chrome Browser and Chrome Driver. I recommend using the latest stable release for both to get the best performance.

WappDriver does not support other Browsers. Please use Chrome for a smooth experience.

Setup ⚙️

After you have installed wappdriver and the requirements stated above, you can start using wappdriver straight away.

When you will run your code for the first time, you will be asked for Chrome Driver Path. When the WhatsApp web screen loads for the first time, you have to scan the QR code from you smartphone's WhatsApp application, to log into your WhatsApp account. Learn more.

Getting Help 💁🏻

First of all, read the Help Page. You may try to search your question in the search bar on the page.

For further assistance you may ask a question the issues section.

Contributing 🤩

Please look at Code of Conduct and Contributing Guidelines.

Please read the explanation of the detailed working of wappdriver from the Developer's Guide.

Legal ⚖️

This project is distributed under MIT License.

This code is in no way affiliated with, authorized, maintained, sponsored, or endorsed by WhatsApp or any of its affiliates or subsidiaries. This is an independent and unofficial software.

Release files for wappdriver 0.6.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wappdriver 0.6.6
File Size Uploaded
wappdriver-0.6.6.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wappdriver 0.6.6
File Interpreter ABI Platform
wappdriver-0.6.6-py3-none-any.whl Python 3 none any Details

Total release size: 21.8 kB

Release files / wappdriver-0.6.6.tar.gz

Download URL wappdriver-0.6.6.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f66f444b2eb69921fd3913738b922f037b6604a763a9eacb280ced7b8638879a
BLAKE2b-256 checksum
How to use checksums
0d13797df15b0e9b32553c34ece2ff5d42e1a8d3fb4d11c2da6e471c27796430
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

Release files / wappdriver-0.6.6-py3-none-any.whl

Download URL wappdriver-0.6.6-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30e67a75bcdd3f1735e28215fc1a8de35b3c5d566da0233f625c8eb755db0e1e
BLAKE2b-256 checksum
How to use checksums
c18eeed2cffa26a500c71014f01c799e8abb58a303eb9eafbb9e1b5366fb59dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page