Skip to content

weslleylc/instagram-analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentiment Analysis

Basic application to analyze the sentiments of Instagram comments for a specific post

Usage

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

alt text

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.

alt text

Now you need to paste the code and inform the number of comments you want to analyze

alt text

You can see the results below

alt text

References

https://github.com/abhinavsagar/machine-learning-deployment

https://www.kaggle.com/mistryjimit26/twitter-sentiment-analysis-basic

https://www.kaggle.com/paoloripamonti/twitter-sentiment-analysis

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published