driver = webdriver.Chrome("/home/cp/chromedriver") # your chrome driver path Abobe the line change the path according your System then run the code
Download the .py file and change path then run simple python code, using this command (python3 whatsapp.py)