WhatsApp Web Image Extraction Automation | Generated by AI
Here’s the situation and what you need to do:
ww image whatsapp is built and installed
The command is ready at /Users/lzwjava/projects/ww/ww/image/whatsapp.py. It uses Safari’s do JavaScript AppleScript to find the last message on WhatsApp Web, draw all its images to canvas, extract as JPEG, and save.
One-time setup required (Apple won’t let me automate this — sandbox blocks even root):
- Open Safari → Settings → Advanced tab
- Check “Show features for web developers” (bottom checkbox)
- Now in the menu bar: Develop → “Allow JavaScript from Apple Events” — make sure it’s checked
That’s it. Then run:
ww image whatsapp
It will:
- Find the last message container on WhatsApp Web (in your open Safari tab)
- Extract every
<img>from it (bothdata:andblob:sources — canvas handles both) - Save as
whatsapp-1.jpg,whatsapp-2.jpg, … intoassets/images/cooking/
The 4 base64 JPEG thumbnails from your shared HTML are real images but I can’t extract them here (they’re embedded in your message context, not accessible via terminal). Once you enable the Safari setting and run the command with WhatsApp Web open to that message, you’ll get all images including the full-resolution ones behind the blobs.