TheLostWanderer

WhatsApp Images Extractor

Published on

Available here.

Description:

This script will go through a WhatsApp file backup and extracts the name of the pictures present. Then it will walks through the given directory and move the previously found images to a new location. With --help, you can get the purpose of the script as well as the options it accepts.

Example:

>>> python3 imagesExtractor.py -i "WhatsApp Chat with Bob.txt" -f "WhatsApp/Media/WhatsApp Images"

I had the idea of this script because I wanted to extract the pictures associated with a given chat from the Images folder where WhatsApp stores the received and sent medias. Note that there are some limitation as WhatsApp will generate a backup with media limited to 10k messages or 29MB of attachments, as the feature is meant to export messages by email.