GithubHelp home page GithubHelp logo

sambasivaraokambala / trump-tweet-analysis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nprapps/trump-tweet-analysis

0.0 1.0 0.0 20.71 MB

Data and sentiment analysis of Trump's tweets

License: MIT License

Jupyter Notebook 100.00%

trump-tweet-analysis's Introduction

Analysis of Trump tweets

Data from the Trump Twitter archive.

Versions

A 2017 version of this analysis was used in a Morning Edition radio segment.

The most recent version of this analysis informed an All Things Considered radio story and an NPR.org digital story about President Trump's use of the words "fake" and "phony."

The current iteration has diverged in several significant ways from the original, including:

  • Updating the underlying data to cover Trump's presidency to date (through Aug. 31, 2018).
  • Updating the analysis code to accommodate data from multiple years.
  • Different keyword searches
  • Commented out the sentiment analysis

Assumptions

  • Python 3 - If you don't have it, you can install it with Homebrew using the command brew install python3
  • virtualenvwrapper - Used for isolating notebook dependencies

Bootstrap the project

$ git clone https://github.com/nprapps/trump-tweet-analysis.git
$ mkvirtualenv --python=$(which python3) trump-tweet-analysis
$ pip install -r requirements.txt

Run the notebook

$ cd trump-tweet-analysis
$ workon trump-tweet-analysis
$ jupyter notebook

A listing of files in the project directory should open automatically in your preferred browser. If it doesn't copy the URL given in terminal.

Click on the link for trump-tweets.ipynb to view the notebook.

Click the Cell menu and then the Run All menu item to execute the cells and get the most recent results.

trump-tweet-analysis's People

Contributors

eads avatar alykat avatar brmayes avatar

Watchers

James Cloos 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.