https://github.com/streamlit/example-app-twitter-analyzer
https://github.com/streamlit/example-app-twitter-analyzer
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/streamlit/example-app-twitter-analyzer
- Owner: streamlit
- License: apache-2.0
- Created: 2021-10-15T21:02:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-17T15:41:55.000Z (6 months ago)
- Last Synced: 2025-01-29T10:36:33.835Z (5 months ago)
- Language: Python
- Size: 113 KB
- Stars: 24
- Watchers: 10
- Forks: 29
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://share.streamlit.io/streamlit/example-app-twitter-analyzer/main)
# Twitter Analyzer
A tweet analysis dashboard written in Streamlit!
See it in action:
# Trying this in your own machine
To try it out, you first need to specify your Twitter API credentials:
1. Create a subfolder _in this repo_, called `.streamlit`
2. Create a file at `.streamlit/secrets.toml` file with the following body:
```toml
[twitter]
# Enter your secrets here. See README.md for more info.
consumer_key = 'enter your credentials here'
consumer_secret = 'enter your credentials here'
```
3. Go to the [Twitter Developer Portal](https://developer.twitter.com/en/portal), create or select an existing project + app, then go to the app's "Keys and Tokens" tab to generate your "Consumer Keys".
4. Copy and paste you key and secret into the file above.
5. Now you can run you Streamlit app as usual:
```
streamlit run streamlit_app.py
```## Important
The current version of this app uses some _very alpha_ features of Streamlit. If you clone this repo, be aware that these features will be changing dramatically before they land. You've been warned!