Skip to content

danbailo/whatsapp-bot-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whatsapp Bot Message

A simple application to send messages for contacts that was writed in numbers.xlsx.

Requirements

obs: if you'll run directly with Python, it's recommended to use virtual enviroment, like as pyenv

Start a Selenium container with Chrome image.

Recommended

docker run --name selenium-whatsapp -d -p 4444:4444 -p 7900:7900 --network host -v /tmp:/tmp -v /dev/shm:/dev/shm --env SE_NODE_MAX_SESSIONS=4 --env SE_NODE_SESSION_TIMEOUT=1800 --env SE_NODE_OVERRIDE_MAX_SESSIONS=TRUE selenium/standalone-chrome:113.0-20230508

Running application w/ Docker - Linux Based

docker compose down --remove-orphans
docker compose build

Before run application, you need to set the message that you wanna send in compose.env.

Then, just run

docker compose --env-file=compose.env run app

Whenever you change the numbers.xlsx, you will need to re-execute docker compose down --remove-orphans && docker compose build

Running w/ Python - Linux Based

pip install -r requirements.txt
cd src
python main.py execute --message 'your-message'

After run

After run application, you need to access http://localhost:7900/?autoconnect=1&password=secret and scan the QRCode.

You have 5 minutes to scan it, otherwise the application will failed.

About

Simple Whatsapp bot message

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published