Check out the live version of this app.
This app was a fun project to simply understand twitters community sentiment accross any issue.
Note: Sentiment scores do in no way indicate my views or oppinions or that of Twitter or Streamlit
- Go to the Twitter Dev Portal and create a project + app and get your keys and tokens
- Create a file
.streamlit/secrets.toml
that looks like this
[twitter]
api_key = "enter your credentials"
api_key_secret = "enter your credentials"
access_token = "enter your credentials"
access_token_secret = "enter your credentials"
bearer_token = "enter your credentials"
- Streamlit
- Twitter API
- Hugging Face sentiment models
The hugging face model this uses is 500MB and will download the first time you load the application in Streamlit locally. So just keep that mind. Fun Fact: It is trained on over 124M Tweets from Jan 2018 to Dec 2021.