Coder Social home page Coder Social logo

hw3_storytelling's Introduction

hw3_storytelling

About

This is tracking distributions of tweets from different locations that are about the term 'weather', but one can experiment with different specific weather related queries like 'sunny' or 'rain'

These are from Twitter, a social media platform that provides user generated <140 character blurbs in realtime.

I have always wondered if other people tweeted about the weather if there was something significant happening especially in different locations. I know definitely do. So I wanted to track which places use Twitter more for things like weather, and maybe learn something about places where people tweet and if communities are more likely to use social media as a tool for information distribution.

My alerting system alerts when there is a change in entropy above .5. It seemed like mrore people were active after this threshold.

API Used: Twitter API through Python wrapper TwitterAPI If you would like more information on TwitterAPI, the docs and other usage info is available at https://github.com/geduldig/TwitterAPI.

File Overviews

poll-twitter.py

This creates the twitter stream and returns JSON about the number of followers and retweets.

numbers-by-weather.py

This inserts our numbers into the Redis Server as key value pairs.

decrement.py

This decrements counts so we can always maintain a current level of data saturation.

twitter-api.py

This is our server which can access information based on data collected in our server.

How to Run

    1. Run a Redis Server in One Window redis-server --port=6788
    1. Run the script to poll data, insert and upkeep data, and publish it to our API python poll-twitter.py | python numbers-by-weather.py & python decrement.py & python twitter-api.py

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.