Giter Club home page Giter Club logo

loveisintheair-stats-plotter's Introduction

LoveIsInTheAir-Stats-Plotter

A pie chart plotter for Spark twitter steaming data collected from all over India during the valentines week built using plotly and geopy. Plots the distribution of tweets for all the states of India.

Tweets of love from India (Feb 7-14, 2016)

  • Click to see the pie chart on plot.ly

Setup and HowTo

  1. Install python-2.7

  2. Install the following modules using pip install: geopy, plotly, json, logging

  3. Clone LoveIsInTheAir-Stats-Plotter: git clone https://github.com/sahilsareen/LoveIsInTheAir-Stats-Plotter.git

  4. Get a plot.ly account

  5. Update the configuration

  • Set the spark config:
    • spark_file_name: The location where the spark streamed twitter cached files are stored by LoveIsInTheAir
    • spark_num_partitions: The number of cached files stored as partitions
  • geopy_timeout: Timeout per city to state lookup by geopy
  • Set the plotly config:
    • plotly_username: Your username on plot.ly
    • plotly_api_key: Your api-key
    • plotly_plot_name: Name of the pie chart
  1. Run cd LoveIsInTheAir-Stats-Plotter/src && python StatesTweetCount.py

Contributing

  1. Generate a pull request, OR
  2. Email patches to sahil [DOT] sareen [AT] hotmail [DOT] com

License

See License

Author

  • Sahil Sareen (sahil [DOT] sareen [AT] hotmail [DOT] com)

loveisintheair-stats-plotter's People

Contributors

sahilsareen avatar

Stargazers

Edward Cody avatar Nitish Kumar avatar bill-mlh avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

nitishkumaram

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.