Skip to content

This project analyzes tweets to discover events & extract insights. Uses Elasticsearch, Angular, Python, & FastAPI, visualizes tweets on a map with heatmap overlay & provides hands-on experience in text preprocessing, indexing, querying, ranking & using real-world datasets.

Notifications You must be signed in to change notification settings

GhaidaaShtayeh/Twitter-Spatio-Temporal-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Spatio-temporal Analysis

This project is aimed at conducting a spatio-temporal analysis of tweets from a Twitter stream API. The goal is to extract real-time information about events as they occur by using a combination of technologies such as Elasticsearch, Angular, Python, and FastAPI.

Getting Started

To get started with the project, you will need to create a Twitter developer account and generate the necessary access keys to collect tweets from the Twitter stream API.

The tweets are collected in real-time, and the location, time, and content of the tweets are extracted and stored in Elasticsearch (ES). The tweets are then scored based on their text, location, and time, and a heatmap is plotted over a map using these scores.

A web app is built using Angular and the Leaflet SDK to display a map of a certain geographic area. The user can enter a query into an input field and have the option to include location and date fields. The tweets are retrieved from ES and scored based on text, location, and time, and a heatmap is plotted over the map using these scores.

The web app communicates with ES and serves client requests using a Python-based web framework, FastAPI.

Prerequisites

  • Node.js and npm for the Angular web app
  • Python 3 for the FastAPI server
  • Elasticsearch for data storage and querying

The web app will be available at http://localhost:4200/, and the server will be available at http://localhost:8000/.

Built With

  • Angular - The web framework used for the front-end
  • Leaflet - The JavaScript library used for displaying maps
  • Python - The programming language used for the back-end
  • FastAPI - The web framework used for building the server
  • Elasticsearch - The data storage and querying system used

About

This project analyzes tweets to discover events & extract insights. Uses Elasticsearch, Angular, Python, & FastAPI, visualizes tweets on a map with heatmap overlay & provides hands-on experience in text preprocessing, indexing, querying, ranking & using real-world datasets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published