whatsappas is a library for sending automatic messages/photos on whatsapp.
Install the latest stable version from PyPI:
pip install whatsappas
- send_messages
>>> from whatsappas import send_messages
>>> send_messages()
-
Support sending automatic messages and/or photos to numbers and groups.
-
Waiting times while sending messages is normal and needed for the well function of the library and security of your account on whatsapp.
-
The library is built using essencialy Selenium and with all it's caveats.
-
.ipynb files can face problems while running the function try to use .py scripts.
-
A temporary file is created to keep count of the current position in the csv file. Set the parameter to False if you dont want to start from the previous position.
-
The whatsapp doesn't support this type of activity and the risc of having your account banned is significantly even with all the counter measurements made in this library.
-
The library only supports .csv files that follows the specific structure example .csv.
-
The header must be Message;NumberOrGroup;photo_path
-
In the Message string the '&' represent a newline
-
The separator in the csv must be ';' (semicolon).
-
Paths for the photos must be full C:\Users\CURRENT_USER\Desktop or blank if you just want the message to be sent.
-
Cellphone numbers can vary from country to country so be aware of how the Whatsapp API uses your cellphone number pattern in your country explication example for Brazilian numbering. In the .csv example file has the USA and Brazil patterns of cellphone number usage respectively.