Skip to main content

auto_whatsapp

Automating WhatsApp using python with custom multiple messaging options, attachment options and supporting images and video sending as well. auto_whatsapp also persist your login state once QR code is scanned on web whatsapp.

Setup

Installation

In the terminal type the following

pip install auto_whatsapp

Usage

Import auto_whatsapp module use its sendChat function to send messages.

from auto_whatsapp import auto_whatsapp

msg = 'This is a test message'
users = ["user1", "user2", "+91 9876543210"]
auto_whatsapp.sendChat(users, msg)

users1 and user2 are saved contact name according to your use case.
Messages can also be send to unsaved contacts like +91 9876543210 as shown above. Just run the code you can see the magic happening. It will open web whatsapp automatically send the given message to specified users.

Make sure you have selenium installed
pip install selenium
and have chromedriver in the same directory. If you don't have chromedriver installed click here


Examples

Sending a document

from auto_whatsapp import auto_whatsapp

users = ["user1", "user2", "+91 9876543210"]
src = 'C:\\Users\\Your_user\\Desktop\\dots.jpg'
auto_whatsapp.sendDoc(users, src)

Note that you have to provide absolute path as src argument and with double backslackes(\) as shown in example.

Sending a media

Media can be images, videos or audio which whatsapp supports.

from auto_whatsapp import auto_whatsapp

users = ["user1", "user2", "+91 9876543210"]
src = 'C:\\Users\\Your_user\\Desktop\\dots.jpg'
auto_whatsapp.sendMedia(users, src)

Note that you have to provide absolute path as src argument and with double backslackes(\) as shown in example.


License

auto_whatsapp is been licensed under MIT LICENSE

Metadata

Release files for auto-whatsapp 0.0.5

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

Source distribution (sdist)

Source distribution for auto-whatsapp 0.0.5
File Size Uploaded Provenance
auto_whatsapp-0.0.5.tar.gz 3.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for auto-whatsapp 0.0.5
File Interpreter ABI Platform
auto_whatsapp-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / auto_whatsapp-0.0.5.tar.gz

Download URL auto_whatsapp-0.0.5.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8c2577bbf3c9973bce5a0d95c7ffd666fefd85dd724f2961e9d6cbfd4d8cef85
BLAKE2b-256 checksum
How to use checksums
0bcbdb6871900ae8bc80a8eb50dac68663b4dd2f3fc351cc5ec2c5d9ab474e60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

Release files / auto_whatsapp-0.0.5-py3-none-any.whl

Download URL auto_whatsapp-0.0.5-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13f195297e21a618cc2a46c2f1d0dd7c971aaba567d6056c9003edc30527e47b
BLAKE2b-256 checksum
How to use checksums
311a9330f3560ce9b27a118bfb131c9cf53ef47111caed5f86432099fb972064
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

Security for auto-whatsapp 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files No provenance

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