Skip to content

Instantly share code, notes, and snippets.

@ScDor
ScDor / whatsapp_group_imgs.py
Created April 8, 2020 14:52
whatsapp group picture extractor
import sqlite3
DB_FILE = r"PATH\TO\DB\FILE"
GROUP_ID = GROUP_ID \\ see messages.key_remote_jid, appears after the "@" sign
con = sqlite3.connect(DB_FILE)
with con:
cur = con.cursor()
image_paths = cur.execute(f"select file_path from message_media where "