WhatsApp Images Extractor

Published on

Available here.


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.


>>> python3 -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.