Basic application to analyze the sentiments of Instagram comments for a specific post
Clone the repo:
git clone https://github.com/weslleylc/instagram-analytics
cd instagram-analytics
Create virtualenv:
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
Download the data and put on the "data" folder at Sentiment140 Details or Google Drive
Train your model
python train.py
or donwload the cache data
Run the sample server python app.py
Try the endpoints
curl -XPOST -H "Content-Type: application/json" http://localhost:5000/request -d '{'short_code':"CBgHs1Xjgin", 'max_comments':"10"}'
or open the web application:
http://127.0.0.1:5000/
Let's test our application. First get the code of a post on instagram.
Now you need to paste the code and inform the number of comments you want to analyze
You can see the results below
https://github.com/abhinavsagar/machine-learning-deployment
https://www.kaggle.com/mistryjimit26/twitter-sentiment-analysis-basic
https://www.kaggle.com/paoloripamonti/twitter-sentiment-analysis



