GitHunt
JA

jasperan/whatsapp-osint

WhatsApp spy - logs online/offline events from ANYONE in the world

๐Ÿ•ต๏ธโ€โ™‚๏ธ WhatsApp Beacon (OSINT Tracker)

License
Python
Platform

WhatsApp Beacon is a powerful, cross-platform OSINT tool designed to track the online status of WhatsApp users. It leverages Selenium and Web WhatsApp to monitor connectivity patterns and generate detailed logs and reports.

Disclaimer: This tool is for educational and research purposes only. Do not use it for stalking or any illegal activities.


Installation

One-command install โ€” clone, configure, and run in a single step:

curl -fsSL https://raw.githubusercontent.com/jasperan/whatsapp-osint/master/install.sh | bash
Advanced options

Override install location:

PROJECT_DIR=/opt/myapp curl -fsSL https://raw.githubusercontent.com/jasperan/whatsapp-osint/master/install.sh | bash

Or install manually:

git clone https://github.com/jasperan/whatsapp-osint.git
cd whatsapp-osint
# See below for setup instructions

โœจ Features

  • Cross-Platform: Works seamlessly on Windows, Linux, and macOS.
  • Automated Driver Management: No need to manually download chromedriver.
  • Headless Mode: Run in the background without a visible browser window.
  • Detailed Logging: Tracks online/offline events with precision.
  • Data Export: Export session logs to Excel for analysis.
  • Configurable: Use CLI arguments or a simple config.yaml file.
  • Resilient: Handles network interruptions and browser restarts.

๐Ÿ› ๏ธ Installation

  1. Clone the repository:

    git clone https://github.com/jasperan/whatsapp-osint.git
    cd whatsapp-osint
  2. Install dependencies:
    It is recommended to use a virtual environment.

    pip install -r requirements.txt

๐Ÿš€ Usage

You can run the tracker using command-line arguments or the configuration file.

Quick Start

python3 -m src.whatsapp_beacon.main -u "John Doe"

Command Line Arguments

Argument Description Default
-u, --username The exact WhatsApp username (as saved in your contacts) to track. Required
-l, --language Language code of your WhatsApp Web interface (e.g., en, es, fr). en
-e, --excel Export database logs to an Excel file on startup. False
--headless Run in headless mode (no browser window). False
--config Path to a custom configuration file. config.yaml

Examples

Track a user with Spanish WhatsApp Web in Headless mode:

python3 -m src.whatsapp_beacon.main -u "Maria" -l es --headless

Export data to Excel:

python3 -m src.whatsapp_beacon.main -u "John Doe" -e

โš™๏ธ Configuration

You can permanently set your preferences in config.yaml:

username: "Target Name"
language: "en"
headless: false
excel: false
browser: "chrome"
log_level: "INFO"
data_dir: "data"

๐Ÿ“Š Output

  • Logs: Saved to logs/whatsapp_beacon.log and displayed in the console.
  • Database: All sessions are stored in data/victims_logs.db.
  • Excel: Exported reports are saved as History_wp.xlsx (configurable path in code).

๐Ÿค– Headless Mode & Authentication

When running in Headless Mode for the first time:

  1. The tool will attempt to log in.
  2. If not authenticated, it will save a screenshot of the QR code to qrcode.png.
  3. Open qrcode.png and scan it with your phone's WhatsApp.
  4. The tool will detect the login and proceed.

Note: It is easier to run once in non-headless mode to authenticate, as the session is saved in data/chrome_profile.


๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“œ License

Distributed under the MIT License. See LICENSE for more information.

๐Ÿ™Œ Credits

Original concept developed in 2019. Revamped in 2025 for better performance and usability.


GitHubย 
LinkedIn

jasperan/whatsapp-osint | GitHunt