WhatsApp spy - logs online/offline events from ANYONE in the world
WhatsApp spy - logs online/offline events from ANYONE in the world
WhatsApp Beacon tracks when specific WhatsApp contacts go online and stores every completed session in SQLite. It can export to Excel, generate a polished analytics dashboard, and run fully headless once the session is authenticated.
Disclaimer: This tool is for educational and research purposes only. Do not use it for stalking or any illegal activities.
pip install whatsapp-osint gets you the package fast..venv, install the package, and verify the browser setup.sudo.History_wp.xlsx (sessions + presence worksheets).--last-seen CLI: query the latest presence evidence per contact with no browser needed.python3 -m pip install whatsapp-osintThe package installs 2 equivalent entry points:
whatsapp-osintwhatsapp-beaconcurl -fsSL https://raw.githubusercontent.com/jasperan/whatsapp-osint/master/install.sh | bashWhat it does:
./whatsapp-osint./whatsapp-osint/.venvwhatsapp-beacon commandsudo when needed to install missing system packages and Chrome/ChromiumIf you want a custom location:
PROJECT_DIR=/opt/whatsapp-osint curl -fsSL https://raw.githubusercontent.com/jasperan/whatsapp-osint/master/install.sh | bashUse this only if you explicitly want to manage setup yourself.
git clone https://github.com/jasperan/whatsapp-osint.git
cd whatsapp-osint
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[dev]"If you installed from PyPI:
whatsapp-osint -u "John Doe"whatsapp-osint and whatsapp-beacon run the same CLI. The rest of the examples keep using whatsapp-beacon.
If you used the GitHub installer:
cd whatsapp-osint
source .venv/bin/activate
whatsapp-beacon -u "John Doe"If you do not want to activate the venv first:
./whatsapp-osint/.venv/bin/whatsapp-beacon -u "John Doe"The first run must authenticate with WhatsApp Web.
qrcode.png.Example:
whatsapp-beacon -u "Maria" --headlessGenerate a static HTML dashboard from the collected SQLite history:
whatsapp-beacon --analyticsBy default, the report is written to:
analytics/index.htmlCustom output path:
whatsapp-beacon --analytics --analytics-output reports/contact-dashboard.htmlOnce generated, open it in your browser:
xdg-open analytics/index.html
# or on macOS
open analytics/index.htmlThe dashboard includes:
Beyond online/offline blocks, the tracker records the status text WhatsApp shows for a contact ("online", "last seen today at 14:32", "last seen yesterday at 21:05", "last seen on 12/31/2025 at 23:59", "typing…"). This fills the gaps between sessions with actionable evidence.
Query the latest evidence per contact without launching a browser:
# All contacts
whatsapp-beacon --last-seen
# Single contact
whatsapp-beacon -u "Maria" --last-seenExport everything to JSON for your own tooling:
whatsapp-beacon --export-json export.jsonThe JSON contains sessions (per-session online blocks) and presence (per-observation status signals with parsed last_seen timestamps).
The Excel export (--excel) also gains a Presence worksheet alongside the session history.
Captured from a demo dataset generated through the built-in analytics exporter.
Same dashboard, narrowed to one contact to show the live filter state.
| Argument | Description | Default |
|---|---|---|
-u, --username |
Exact WhatsApp contact name to track. | Required for tracking |
-l, --language |
WhatsApp Web language code (en, es, fr, etc.). |
en |
-e, --excel |
Export the database to Excel before doing anything else. | False |
--headless |
Run without a visible browser window. | False |
--chrome-driver-path |
Explicit path to chromedriver. |
Auto-detect |
--chrome-binary-path |
Explicit path to Chrome or Chromium. | Auto-detect |
--analytics |
Generate the analytics dashboard and exit. | False |
--analytics-output |
Output path for the analytics HTML report. | analytics/index.html |
--export-json |
Export sessions + presence to a JSON file and exit (no browser needed). | Off |
--last-seen |
Print the latest presence signal per contact and exit (no browser needed). | False |
--config |
Path to a custom config file. | config.yaml |
You can keep defaults in config.yaml:
username: "Target Name"
language: "en"
headless: false
excel: false
browser: "chrome"
log_level: "INFO"
data_dir: "data"
chrome_binary_path: nulllogs/whatsapp_beacon.logdata/victims_logs.dbHistory_wp.xlsxanalytics/index.html by defaultdata/chrome_profilecannot find Chrome binaryThe installer now tries to fix this automatically on Linux. If your distro keeps the browser in a weird place, launch with an explicit path:
whatsapp-beacon -u "John Doe" --chrome-binary-path /full/path/to/browserUseful checks:
which google-chrome google-chrome-stable chromium chromium-browser
whatsapp-beacon --helpUsername is requiredTracking mode needs a contact name:
whatsapp-beacon -u "John Doe"Analytics mode does not:
whatsapp-beacon --analyticsContributions are welcome. Fork it, build what you need, and send a PR.
Distributed under the MIT License. See LICENSE for more information.
Original concept developed in 2019. Revamped in 2025 for better performance and usability.
No open issues yet, or sync has not completed.