Using Flask to display tweets from different locations in real time.
Python HTML CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static
templates
Procfile
README.md
app_functions.py
app_functions.pyc
conda-requirements.txt
onlinetweetsappv9.py
requirements.txt
runtime.txt
twitter_secrets.json.nogit.txt

README.md

online-tweets-app-v9

What is it?

A Python application that uses the Flask web framework and Bokeh interactive visualisations, deployed to Heroku.

What does it do?

With one click, you can see the number of times marijuana-related words are currently being tweeted in a region of your choice!

What coud it ultimately do?

See how much different regions tweet about a topic of your interest.
Example 1: Do people tweet more about marijuana in states where its use is legal?
Example 2: Do people tweet more about your product in places where you focused your marketing campaign?

How does it do it?

1. Get current tweets from Twitter API which mention marijuana.
2. Tokenize them.
3. Count the number of times marijuana-related words are used.
4. Return the number of times marijuana-related words are used in an interactive graph.

What is the current state of the app?

1. At the moment, the user can choose from West USA, East USA and Canada. The app counts marijuana-related words in the first 3 tweets in real time.
2. I'm working on analyzing more tweets. However, analyzing the first e.g. 10 tweets per region in real time takes me over the Heroku HTTP 30 second timeout limit.
3. My next step is for the user to be able to choose more regions at once and see their comparison.
4. My ultimate step is for the user to be able to choose any topic of interest and compare the volume of tweets about the topic across different regions.