Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time

Python Spark Structured Streaming with Twitter tutorial

Setup the project

Configure a virtual environment:

python -m venv venv
source venv/bin/activate

Install the requirements:

pip install -r requirements.txt

Configure the settings

Copy the file to and configure the variables.


Run application

First, run the Twitter streaming application:


After that, run the Spark sentiment analysis application: