juyalpriyank / scrape_whatsapp

Python script for scraping WhatsApp Web.
4 stars 1 forks source link
asynchronous beautifulsoup4 python-3 scraping scrapper-script selenium whatsapp-web

WhatsApp-Scraping

Python script to scrape all the chats from WhatsApp Web.

Description

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.

Requirements

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

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.

Limitations

Settings

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.

Step-1:

Step-2:

Step-3: