Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 2.19 KB

README.md

File metadata and controls

50 lines (29 loc) · 2.19 KB

Downloads PyPI badge License: MIT

Overview

whatsappas is a library for sending automatic messages/photos on whatsapp.

Installation

Install the latest stable version from PyPI:

pip install whatsappas

Included function

  • send_messages

Quick start

>>> from whatsappas import send_messages
>>> send_messages()

Usage and cautions

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

Supported file

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