These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Python
sudo add-apt-repository ppa:jonathonf/python-3.7
sudo apt-get update
sudo apt-get install python3.7- pip3
sudo apt update
sudo apt install python3-pip- Clone the Repo
git clone https://github.com/nebasam/Twitter-Data-Analysis.git
- cd into repo
cd Twitter-Data-Analysis - Install Requirements
pip3 install requirements.txt
- Extract dataframe
python3 extract_dataframe.py
- Clean Extracted DataFrame
python3 clean_tweets_dataframe
- Add Dataframe data into sql database #pls add your databasename, db password, db username to db.yaml file first
python3 data.py
- Run the App
streamlit run main.py
Topic Modeling for twtter data can be found in twitter_modeling.ipynb jupyter notebook file.
The following code enables you ti run unit test
- Get into Test Directory
cd tests- Run Test
python3 test_extract_dataframe.py