News for the ‘Code Fridays’ Category

Code Friday’s #1

It’s Friday evening and I’m too lazy to check the television for the Toronto Blue Jays score. Yeah yeah, nothing a little script can’t handle.

lynx -nonumbers -nolist -dump http://m.4info.com/search?searchQuery=Toronto | egrep -i -B2 -A4 "Status"
   Toronto Blue Jays (75-84)   (R) 4    (H) 5    (E) 0
   Baltimore Orioles (61-98)   (R) 7    (H) 9    (E) 0
   Status:  Top5th  B: 2 S: 2 O: 0
   Start Time:  10/02 7:05 PM ET
   Pitching:  Jason Berken (0K)
   Batting:  Kyle Phillips (0/1)
   Man on 1st

Replace the query with whatever team or term you desire; easy :)

Posted: September 25th, 2009
Categories: Code Fridays
Tags:
Comments: No Comments.