https://github.com/mattheusv/bozohate
See how many negative/positive tweets President Bolsonaro has per day.
https://github.com/mattheusv/bozohate
d3 mongodb pandas python
Last synced: about 1 month ago
JSON representation
See how many negative/positive tweets President Bolsonaro has per day.
- Host: GitHub
- URL: https://github.com/mattheusv/bozohate
- Owner: mattheusv
- License: mit
- Created: 2019-07-25T19:35:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-01T21:14:27.000Z (about 2 years ago)
- Last Synced: 2025-05-14T01:59:12.753Z (about 2 months ago)
- Topics: d3, mongodb, pandas, python
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bozohate
See how many negative tweets President Bolsonaro has per day.## Screenshot
## Requirements
- Python 3.7
- MongoDB 4.0
- Twitter API token## Install
- `$ git clone https://github.com/msAlcantara/bozohate`
- `$ cd bozohate`
- `$ python -m venv venv`
- `$ source venv/bin/activate`
- `$ pip install -r requirements.txt`## Environment Variables Configuration
You can set this environment variables or create a `.env` file like the `.env_template` file in this repository
- FLASK_DEBUG
- MONGO_URI
- CONSUMER_KEY
- CONSUMER_SECRET
- ACCESS_TOKEN
- ACCESS_TOKEN_SECRET## Run
- `$ export FLASK_APP=bozohate`
- `$ flask run`## Populate database
To get tweets from twitter:
- `$ flask update`
To compute values to see them in frontend:
- `$ flask compute`## License
[MIT](https://raw.githubusercontent.com/msAlcantara/bozohate/master/LICENSE) license.