Build a Simple WhatsApp Bot in Python Using Selenium

Selenium is a web automation package available for all popular languages. To learn more about Selenium, you can refer to the official Selenium documentation. Here, we will make a simple WhatsApp bot using Python and Selenium that replies to every message with the current time. Installing Selenium First, we need to install Selenium for Python by running the following command in a terminal. pip install selenium Selenium also requires a driver to interface with the chosen browser. For Firefox, we need to install geckodriver. Without the proper driver, you will get a WebDriverException. Download the latest geckodriver from Mozilla’s GitHub repository and add it to your path. ...

October 20, 2017 · 3 min · Vikas Kumar