In my stories before (https://medium.com/@DeaVenditama/how-i-build-whatsapp-automation-tools-74f10c93e9b8 ) I tell you the general steps how to do it, now I will technically explain how to do it in code. I use Python 3 and Selenium in this tutorial, and I assume the reader knows the basics of Python.

First of all, we must have Python 3 installed; you can download it from https://www.python.org/ and follow the install instruction. After Python3 installed, install Selenium Automation Framework to automate all the things that we want to do later. I recommend using pip to install Selenium.

python3 -m pip install Selenium

Selenium Hello World

After Selenium successfully installed, to test if it is correctly installed on your machine or not, run this Python code and check if there are any error messages.

from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("http://google.com")
time.sleep(2)
driver.quit()

#whatsapp #chatbots #tutorial #selenium #python

Simple Whatsapp Automation Using Python3 and Selenium
1.80 GEEK