Coder Social home page Coder Social logo

cloudxtreme / football-tweets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ashlynstill/football-tweets

0.0 2.0 0.0 4.73 MB

Counting tweets from the biggest college football games in the Southeast each week.

JavaScript 93.96% Makefile 0.10% HTML 4.11% CSS 1.83%

football-tweets's Introduction

Counting sports tweets using Node.js

A node.js application using Twitter's streaming API, socket.io and D3.js to count tweets containing team and game-specific keywords and visualizing which college football games in the Southeast are being talked about the most online.

Built for The Atlanta Journal-Constitution. See the live version here

It's currently set up so it tracks any college sports team's information, but I'm working on a template to track whatever twitter searches you want and visualize the results.

File Structure

####inputs/team_input.html && inputs/game_input.html Each of these input pages provides a simple front-end UI for inputting team data and game data. On the team_input page, you can add each team you want to track and its hex color, its mascot, its conference and its search terms (formatting for search terms is explained on input page). For game inputs, you input each team from the team input's schedule for the season and the information about each game (including the game's lat long location. Each input page will print out JSON for you to copy and save as a file for data (it will replace the JSON files in the json folder).

NOTE: Every team that plays in a game on the game input list will need to have an entry in the team_input json including its search data.

####teamdata.js Takes the two JSON data files and parses them with the current date/week so the app knows which games are happening this week. Outputs variables holding json data objects for every game being played this week (including team1, team2, team1_color, team2_color, team1_mascot, team2_mascot, team1_search, team2_search, team1_count, team2_count, etc โ€“ you catch my drift)

####app.js Takes teamdata.js module outputs and performs twitter search with included search terms. Streams json data with socket.io to views/index.html

####public/javascripts/script.js && public/javascripts/IE_script.js (lovely IE fix) Creates D3 viz with data inputs. Can easily be overhauled with different javascript to visualize whatever data you're searching for(change in conference, different charts, no map, more maps, etc)

####views/index.html Views. Self-explanatory.

I deployed my version to heroku โ€“ the heroku link is live here

Questions? Broke something? Hate it? Tell me! ashlyn [dot] still [at] gmail [dot] com

football-tweets's People

Contributors

ashlynstill 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.