{"id":29016551,"url":"https://github.com/memgraph/twitter-network-analysis","last_synced_at":"2025-10-24T18:32:23.645Z","repository":{"id":39994764,"uuid":"435950276","full_name":"memgraph/twitter-network-analysis","owner":"memgraph","description":"Analyzing a network of tweets and retweets using graph algorithms","archived":false,"fork":false,"pushed_at":"2022-07-13T12:41:51.000Z","size":8638,"stargazers_count":33,"open_issues_count":2,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-07T01:43:12.141Z","etag":null,"topics":["kafka","kafka-streams","memgraph","online-pagerank","pagerank","pagerank-algorithm","streaming","streaming-data","twitter"],"latest_commit_sha":null,"homepage":"http://memgraph.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/memgraph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-07T16:22:40.000Z","updated_at":"2023-03-06T20:00:15.000Z","dependencies_parsed_at":"2022-09-23T14:17:50.430Z","dependency_job_id":null,"html_url":"https://github.com/memgraph/twitter-network-analysis","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/memgraph/twitter-network-analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Ftwitter-network-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Ftwitter-network-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Ftwitter-network-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Ftwitter-network-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memgraph","download_url":"https://codeload.github.com/memgraph/twitter-network-analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memgraph%2Ftwitter-network-analysis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261962069,"owners_count":23236864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kafka","kafka-streams","memgraph","online-pagerank","pagerank","pagerank-algorithm","streaming","streaming-data","twitter"],"created_at":"2025-06-25T22:30:37.649Z","updated_at":"2025-10-24T18:32:23.552Z","avatar_url":"https://github.com/memgraph.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e\n 🔍 Twitter Network Analytics Demo 🔍\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/g-despot/twitter-network-analysis/blob/main/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/g-despot/twitter-network-analysis\" alt=\"license\" title=\"license\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/g-despot/twitter-network-analysis\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" alt=\"build\" title=\"build\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://twitter.com/intent/follow?screen_name=memgraphdb\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white\" alt=\"Follow @memgraphdb\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://memgr.ph/join-discord\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Discord-7289DA?style=for-the-badge\u0026logo=discord\u0026logoColor=white\" alt=\"Discord\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nA web application with backend in Flask and frontend in React and D3.js that\nuses Memgraph to ingest real-time data scraped from Twitter. Data is streamed\nvia [Apache Kafka](https://kafka.apache.org/) or [Apache\nPulsar](https://pulsar.apache.org/), and stream processing is performed with\nMemgraph.\n\n## App architecture\n\n\u003cp align=\"left\"\u003e\n  \u003cimg width=\"600px\" src=\"https://raw.githubusercontent.com/memgraph/twitter-network-analysis/main/img/stream-processing-arc-01-01.png\" alt=\"memgraph-tutorial-twitter-app-architecture\"\u003e\n\u003c/p\u003e\n\n## Data model\n\n\u003cp align=\"left\"\u003e\n  \u003cimg width=\"300px\" src=\"https://raw.githubusercontent.com/memgraph/twitter-network-analysis/main/img/twitter-dataset-01.png\" alt=\"memgraph-tutorial-twitter-pagerank-graph-schema\"\u003e\n\u003c/p\u003e\n\n## Prerequisites\n\nYou will need:\n\n- [Docker](https://docs.docker.com/get-docker/)\n- [Docker Compose](https://docs.docker.com/compose/install/) (included with\n  Docker Desktop on Windows and macOS)\n\n## Running the app\n\n### With a bash script\n\nYou can start everything but the frontend client by **running the bash script**:\n\n```\nbash run_kafka.sh\n```\n\nIf you want to run the app with Apache Pulsar, use the script `bash\nrun_pulsar.sh`. After that, in another window, run the frontend app with:\n\n```\ndocker-compose up frontend-app\n```\n\nThe React application will be running on `http://localhost:3000`.\n\n### Manually using Docker Compose\n\nIf you want to start the app **without using the bash script**, then:\n\n**1.** Remove possibly running containers:\n\n```\ndocker-compose rm -fs\n```\n\n**2.** Build all the needed images:\n\n```\ndocker-compose build\n```\n\n**3.** Start the **Apache Kafka** and **Memgraph MAGE** services:\n\n```\ndocker-compose up -d kafka\ndocker-compose up -d memgraph-mage-kafka\n```\n\n**4.** Start the data stream:\n\n```\ndocker-compose up -d stream-kafka\n```\n\n**5.** Start the backend application:\n\n```\ndocker-compose up backend-kafka\n```\n\n**6.** Start the frontend application in a new terminal window:\n\n```\ndocker-compose up frontend-app\n```\n\nThe React application will be running on `http://localhost:3000`.\n\n## The visualization\n\n**Dynamic Community detection**:\n\n\u003cp align=\"left\"\u003e\n  \u003cimg width=\"300px\" src=\"https://public-assets.memgraph.com/twitter-analysis-with-dynamic-pagerank/memgraph-tutorial-twitter-pagerank-graph-schema.png\"\u003e\n\u003c/p\u003e\n\n![memgraph-tutorial-community-detection](https://raw.githubusercontent.com/memgraph/twitter-network-analysis/main/img/memgraph-tutorial-community-detection-stream.gif)\n\n**Dynamic PageRank**:\n\n![memgraph-tutorial-pagerank-stream](https://raw.githubusercontent.com/memgraph/twitter-network-analysis/main/img/memgraph-tutorial-pagerank-stream.gif)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemgraph%2Ftwitter-network-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemgraph%2Ftwitter-network-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemgraph%2Ftwitter-network-analysis/lists"}