A simple application to send messages for contacts that was writed in numbers.xlsx.
-
Docker & Docker Compose if you'll run with Docker
-
Python - v3.11 (tested) if you'll run directly with Python
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
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
pip install -r requirements.txt
cd src
python main.py execute --message 'your-message'
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.