Developer’s can automate the browser’s activity with a very smart package in python called Selenium. We can make use of whatsapp-web through the browser by using this.

Requirements

We require three basic things to get things fulfill: Selenium.

Install selenium using pip by running the below command on your terminal −

$pip install selenium
  • Chrome/firefox or any other webdriver.

As I using chrome webdriver, below is a link to download chrome webdriver as per your os.

Create Whatsapp account.

Below code is an example to send whatsapp message using python to specific contacts.

#python #whatsapp

Whatsapp using Python
8.05 GEEK