GithubHelp home page GithubHelp logo

cbs_sports's Introduction

##### CBS Scores

This is a simple library that will collect sports scores from CBS for you to use.

Right now it only works for men's college basketball, for obvious reasons. The NCAA tournament is around the corner, and I'm confident that we STILL won't get any kind of friendly mobile support for scores. So I made this to make something else. 

Maybe you could use it to make something even cooler?

It's pretty easy to use, just pass in the sport you want scores for.


scores = CbsScores.new(:mens_basketball) # only works for mens college basketball for now!

scores.games => Array # of games

game = scores.games.first

game.team1[:name] => "Va. Commonwealth"
game.team1[:score] => 54
game.team2[:name] => "George Mason"
game.team2[:score] => 44

game.time_left => => "19:45 left in 2nd"


scores.completed_games => Array # of games that are Final
scores.current_games => Array # of games that are still in play
scores.upcoming_games => Array # of games that haven't started yet

cbs_sports's People

Contributors

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