This project includes several Python scripts to scrape contacts and chat messages from WhatsApp Web using Selenium.
git clone https://github.com/LahcenEzzara/WhatsApp-Scraping-Python.git
pip install -r requirements.txt
chromedriver
executable.contacts_scraper.py
chrome_user_data_dir
and chrome_driver_path
variables in the script with your own paths. py contacts_scraper.py
single_chat_scraper.py
chrome_user_data_dir
and chrome_driver_path
variables in the script with your own paths. Edit the script to set the chat_name
variable to the name of the chat you want to scrape. py single_chat_scraper.py
csv_multi_chat_scraper.py
chrome_user_data_dir
and chrome_driver_path
variables in the script with your own paths. Ensure you have a contact_numbers.csv
file with chat names, one per line. py csv_multi_chat_scraper.py
multi_chat_scraper.py
chrome_user_data_dir
and chrome_driver_path
variables in the script with your own paths. Edit the script to update the chat_names
list with the names of the chats you want to scrape. py multi_chat_scraper.py
This project is licensed under the MIT License. See the LICENSE file for details.