Twitter Network Analysis Save

Analyzing a network of tweets and retweets using graph algorithms

Project README

🔍 Twitter Network Analytics Demo 🔍

license build

Follow @memgraphdb Discord

A web application with backend in Flask and frontend in React and D3.js that uses Memgraph to ingest real-time data scraped from Twitter. Data is streamed via Apache Kafka or Apache Pulsar, and stream processing is performed with Memgraph.

App architecture

memgraph-tutorial-twitter-app-architecture

Data model

memgraph-tutorial-twitter-pagerank-graph-schema

Prerequisites

You will need:

Running the app

With a bash script

You can start everything but the frontend client by running the bash script:

bash run_kafka.sh

If you want to run the app with Apache Pulsar, use the script bash run_pulsar.sh. After that, in another window, run the frontend app with:

docker-compose up frontend-app

The React application will be running on http://localhost:3000.

Manually using Docker Compose

If you want to start the app without using the bash script, then:

1. Remove possibly running containers:

docker-compose rm -fs

2. Build all the needed images:

docker-compose build

3. Start the Apache Kafka and Memgraph MAGE services:

docker-compose up -d kafka
docker-compose up -d memgraph-mage-kafka

4. Start the data stream:

docker-compose up -d stream-kafka

5. Start the backend application:

docker-compose up backend-kafka

6. Start the frontend application in a new terminal window:

docker-compose up frontend-app

The React application will be running on http://localhost:3000.

The visualization

Dynamic Community detection:

memgraph-tutorial-community-detection

Dynamic PageRank:

memgraph-tutorial-pagerank-stream

Open Source Agenda is not affiliated with "Twitter Network Analysis" Project. README Source: memgraph/twitter-network-analysis

Open Source Agenda Badge

Open Source Agenda Rating