Skip to content

jedisam/Twitter-Data-Analysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter-Data-Analysis

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.

Usage

  1. 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
  1. 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

Test

To test the methods written in the modules use the pytest package and run:

pytest

Screenshots

Wordcloud

Contributing

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.

License

MIT