Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 668 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 668 Bytes

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