Python script to scrape all the chats from WhatsApp Web.
Asynchronous WhatsApp Scraper written in Python. I have tried to keep this script independent of the changing classnames of WhatsApp web. Simply prints the text from each chat to the console.
Script uses Python3.5+. All the libraries that we are going to use are in the requirement.txt file. You can install it with PIP in the terminal with:
pip install -r requirements.txt
Selenium requires a driver to interface with the chosen browser. This script uses the Chrome driver. Please Download your driver from below link. NOTE:- The driver version should match your Chrome browser's version.
For more information you can go to the Selenium Website at the installation section.
AT THIS MOMENT THE PROJECT ONLY WORKS WITH CHROME.
THE SCRIPT IS RUN USING AN IDE LIKE IPYTHON.
BELOW ARE THE STEP-BY-STEP GUIDANCE FOR THE SAME.
import script
from script import start_scrape
await start_scrape()