360 Secure SkillHub
360 安全技能中心

Wacrawl

在 macOS 上把 WhatsApp Desktop 的本地 SQLite 数据库只读快照并导入 ~/.wacrawl/wacrawl.db,提供聊天列表、消息列表、关键词全文检索与 SQL 查询命令,支持 JSON 输出,可通过计划任务定时刷新归档。

分类:知识
chasewebb
chasewebb
热度 22.32
最近更新 2026-05-11 17:46:25

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add chasewebb/wacrawl
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
wacrawl
description
Read-only local archive and full-text search of macOS WhatsApp Desktop chats. Snapshots WhatsApp's SQLite databases into ~/.wacrawl/wacrawl.db without modifying the app container.
homepage
https://github.com/steipete/wacrawl
metadata
{"clawdbot":{"emoji":"📱","os":["darwin"],"requires":{"bins":["wacrawl"]},"install":[{"id":"brew","kind":"brew","tap":"steipete/tap","formula":"wacrawl","bins":["wacrawl"],"label":"Install wacrawl (brew)"}]}}

Wacrawl

Local read-only mirror of WhatsApp Desktop on macOS. Copies WhatsApp's SQLite databases into a temp snapshot, imports useful chat data into its own archive, and exposes scriptable search.

Does not send messages, decrypt cloud backups, talk to WhatsApp Web, or write back into WhatsApp's app container.

Requirements

  • macOS with WhatsApp Desktop (Mac App Store version) installed and signed in.
  • Full-disk access for the terminal that runs wacrawl (System Settings → Privacy & Security → Full Disk Access). WhatsApp's group container is sandboxed and otherwise unreadable.
  • wacrawl binary on PATH.

Setup

wacrawl doctor    # verify WhatsApp data path + read access
wacrawl import    # copy + import chats into ~/.wacrawl/wacrawl.db
wacrawl status    # show row counts + last import time

State

  • Source (read-only): ~/Library/Group Containers/group.net.whatsapp.WhatsApp.shared
  • Database: ~/.wacrawl/wacrawl.db

Common Commands

wacrawl chats list --json
wacrawl messages list --chat <id> --limit 100 --json
wacrawl search "keyword" --json
wacrawl sql 'SELECT count(*) FROM messages'

Integration Notes

  • Snapshot model: each wacrawl import re-snapshots WhatsApp's SQLite into a temp dir before reading, so live use of the WhatsApp app never blocks the import.
  • No auth flow — relies entirely on the local logged-in WhatsApp Desktop session.
  • Run wacrawl import on a PaperFang schedule (e.g. hourly) to keep the archive fresh.