This is a series of scripts that:
- builds an NMF topic model (cprop.py)
- listens to a tweet stream on selected keywords identifying similiar tweets by topic (streamer.py)
- displays selected tweets in an infinite scroll (app.py and templates dir)
View here: https://www.cprop.tech/
-
pipenv install
-
pipenv shell
-
python app.py
-
heroku create
-
heroku addons:create heroku-postgresql:hobby-dev
-
git push heroku master
-
Note: make sure you run
db.create_all()
to create the tables.