OfirKP
Whatsapp-Net
JavaScript

Generate a network graph of connections from your WhatsApp groups data

Last updated Mar 31, 2026
84
Stars
8
Forks
3
Issues
0
Stars/day
Attention Score
2
Language breakdown
JavaScript 50.5%
Jupyter Notebook 39.1%
Python 10.3%
โ–ธ Files click to expand
README

Whatsapp Net

This project creates a network graph of connections out of your WhatsApp groups' participants data.

Prerequisites

Make sure you have installed all of the following prerequisites on your machine:

Downloading & Installing

  • Clone this project
$ git clone https://github.com/OfirKP/Whatsapp-Net
  • In the application directory ($ cd Whatsapp-Net), run this command:
$ npm install
  • Install required python packages either by using requirements.txt:
$ pip install -r requirements.txt
or by installing them directly:
$ pip install networkx==2.5 tqdm==4.50.2 matplotlib==3.1.1

Usage

Scraping

To generate a json file with your groups' data, run the following command:
$ node scrape.js
A browser window should open. If you're not connected to WhatsApp web, connect by scanning QR code.

Wait until json file starts downloading.

Generating Graph (GEXF file)

Then, run the python script:
$ python generate_graph.py <data1.json> <data2.json> ...
Optional arguments:
  • -c, --contacts: paths to contacts (.json) files, so that the first file overrides names
of identical contacts in other files
  • -o, --output: path to output GEXF file (default is graph.gexf)
  • -h, --help: help message to get more info about the usage of the script

Visualizing data

RECOMMENDED: use a software like Gephi that allows graph visualization, taking GEXF files as input.

๐Ÿ’ป Technologies Used

License

This project is licensed under the GNU General Public License v2.0 . See License for more info.

ยฉ 2026 GitRepoTrend ยท OfirKP/Whatsapp-Net ยท Updated daily from GitHub