Code Monkey home page Code Monkey logo

moodytwitter's Introduction

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

moodytwitter's People

Contributors

therk avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.