Skip to content

Code for CNJ DIG Meetup on Analyze Moody Twitter

Notifications You must be signed in to change notification settings

therk/MoodyTwitter

Repository files navigation

MoodyTwitter

Code for CNJ DIG Meetup on Analyze Moody Twitter

Examples in this project are based on the Twitter assignment in Coursera "Introduction to Data Science" MOOC (https://www.coursera.org/course/datasci)

Files

  • 1k_tweets.txt
  • AFINN-111.txt
  • AFINN-README.txt
  • oauth.cfg
  • sample_oauth.cfg
  • search_twitter.py
  • stream_twetter.py
  • term_sentiment.py
  • tweet_sentiment.py
  • happiest_state.py
  • SimpleOauth.py

Configuration & Installation

Python Install

  1. On Windows use Python 2.7.5 Windows Installer - http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi
  2. Install easy_install.exe by running https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe#md5=57e1e64f6b7c7f1d2eddfc9746bbaf20
  3. Install Oauth module by running "c:\Python27\Scripts\easy_install.exe oauth2"

Twitter Dev Account

  1. Register on http://dev.twitter.com
  2. Create Twitter Application
  3. Create Access Token for your Twitter Application
  4. Copy sample_oauth.cfg to oauth.cfg and copy Consumer key, Consumer secret, Access token, and Access token Secret values from your Twitter Application to oauth.cfg

Twitter API

  • API v1.1 is the current version. It only supports JSON and requires Oauth 1.0a.
  • API v1.0 has been retired on June 11, 2013. It was a simpler API in that it didn't require authentication.

Resources on Twitter Sentiment Analysis

Resources on Statistics and Natural Language

Resources on Python

About

Code for CNJ DIG Meetup on Analyze Moody Twitter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages