/Whatsapp-Scraper

Scraps all the open chats, and their last n messages, and saves them in a csv file

Primary LanguagePythonMIT LicenseMIT

Whatsapp Web Scraper

  • Runtime: Python 3.5

How to install:

To run selenium you need gecko driver, in case you haven't set it up till now: you can download it from here. And place it in the path.

Create virtualenv using virtualenvwrapper

mkvirtualenv whatsapp_scraper --python=python3
workon whatsapp_scraper 
pip install selenium

Run:

python whatsapp_web.py
(Scan the QR code)

Script takes around 10mins to run(for open 128 open chats), as WhatsApp loads chat dynamically. Feel free to contact me if you have any questions or concerns regarding the script.