Skip to content

shrayasr/score

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Score.sh

A small shell script to bring up scores from Cricinfo for all the cric fans out there :)

Usage

Track a match

$ ./score.sh -a http://www.espncricinfo.com/sri-lanka-v-england-2012/engine/current/match/536301.html someMatch

Get score

$ ./score.sh
SLCD 44/1 (8.0 ov, EMGDY Munaweera 26*, MDKJ Perera 7*, SR Patel 0/7) - Stumps 

List currently tracked matches

$ ./score.sh -l

someMatch : http://www.espncricinfo.com/sri-lanka-v-england-2012/engine/current/match/536301.html

Stop tracking a match

$ ./score.sh -r someMatch

TODO

  • Make the commandline arguments NOT potitional based - guide
  • Allow for adding of URL to track
  • provision for multiple matches
  • Make it faster (currently its curl-ing the entire page)
  • Add help
    • Individual switch help
  • check for uniqueness among keys
    • What i've written is stupid . make it more streamlined
  • Proper error messages

About

get quick cricket match scores from cricinfo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages