cosimoiaia / Facebook-Sentiment-Analysis

Basic script to retrieve and perform Sentiment Analysis on Facebook Posts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facebook-Sentiment-Analysis

Simple basic script to retrieve and perform Sentiment Analysis on Facebook Posts.

Dependencies

  • facebook-sdk
  • NLTK
  • TextBlob
  • Facebook Access Token

Setup

  • Install NLTK:
  • Download the corpora files and trained model:
$ python
>>> import nltk
>>> nltk.download('all')
  • install facebook-sdk and TextBlob:
$ sudo pip install facebook-sdk TextBlob

Usage

$ python simple_facebook_sentiment_analysis.py --access_token YOUR_ACCESS_TOKEN --profile=profilename

About

Basic script to retrieve and perform Sentiment Analysis on Facebook Posts.


Languages

Language:Python 100.0%