It is an analysis done on data extracted from Twitter based on chosen hashtags. The tweets focus on the war between Ukraine and Russia as well as global inflation rates.
- Docker(Recommended)
You need to have docker
1. git clone https://github.com/jedisam/Twitter-Data-Analysis.git
2. Extract the file
cd Twitter-Data-Analysis
docker-compose up
- Manual build Run the extract and clean modules
python extract_dataframe.py
python clean_tweets_dataframe.py
pip3 install -r requirements.txt
streamlit run app.py
This will up a Postgres database on local pc and connect with streamlit app
To test the methods written in the modules use the pytest package and run:
pytest
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.