Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 37

Thread: HOWTO: MLB Baseball scores from the command line!

  1. #11
    Join Date
    Feb 2005
    Location
    Planet NoVA
    Beans
    2,091
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: MLB Baseball scores from the command line!

    holy cow this is GREAT.

    Try escaping a two word city with a backslash

    New\ York

    (Look: Ubuntu is so helpful we even help Yankees fans! )

  2. #12
    Join Date
    Oct 2006
    Beans
    11

    Re: HOWTO: MLB Baseball scores from the command line!

    Actually you can use quotes like so
    Code:
    lynx -nonumbers -dump http://scores.espn.go.com/mlb/scoreboard | egrep -i -A12 -B2 "NY Yankees"
    I have it set up that way. GO YANK!
    Last edited by dvdgorila; April 26th, 2008 at 05:51 PM. Reason: typo

  3. #13
    Join Date
    Aug 2007
    Beans
    2,132

    Re: HOWTO: MLB Baseball scores from the command line!

    I'm really enjoying this in my Conky - can you guess which team I check?

  4. #14
    Join Date
    Jun 2006
    Location
    ga
    Beans
    426

    Re: HOWTO: MLB Baseball scores from the command line!

    Quote Originally Posted by cardinals_fan View Post
    I'm really enjoying this in my Conky - can you guess which team I check?
    The Chicago Cubs? I'm just guessing here.

  5. #15
    Join Date
    Aug 2007
    Beans
    2,132

    Re: HOWTO: MLB Baseball scores from the command line!

    Quote Originally Posted by Kingsley View Post
    The Chicago Cubs? I'm just guessing here.
    I will smite your evil soul!

    I realized that for actual game viewing, Conky isn't much use - unless I have it update obscenely often. So, I have used the following .conkyrc segment to tell me who's playing, and if I'm interested, I can check the main action manually.

    Code:
    ${offset 12}${voffset 80}${color c90006}${font HeldustryFTVBasic Demi:size=10}St. Louis Cardinals
    ${voffset 10}${color 9d9d9d}${font HeldustryFTVBasic Demi:size=10}${texeci 3600 scores | grep -B 1 "home"}
    Where 'scores' is an alias for:
    Code:
    lynx -nonumbers -dump http://scores.espn.go.com/mlb/scoreboard | egrep -i -A12 -B2 "St. Louis"
    Screenshot attached:
    Attached Images Attached Images

  6. #16
    Join Date
    Jul 2006
    Beans
    39
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: MLB Baseball scores from the command line!

    Does anyone have a link to a teams-to-code translator or key? I'm trying to get the Houston Astros to work, but no luck. "Texas" pulls up the Rangers and "Houston" grabs nothing. This is really neat code though. Thanks for posting it.

  7. #17
    Join Date
    Aug 2007
    Beans
    2,132

    Re: HOWTO: MLB Baseball scores from the command line!

    Quote Originally Posted by drworm01 View Post
    Does anyone have a link to a teams-to-code translator or key? I'm trying to get the Houston Astros to work, but no luck. "Texas" pulls up the Rangers and "Houston" grabs nothing. This is really neat code though. Thanks for posting it.
    Everything has stopped working for the moment - I'll mess about with the code to see if I can fix it.

    Never mind, my wireless had a hiccup
    Last edited by cardinals_fan; May 2nd, 2008 at 01:14 AM.

  8. #18
    Join Date
    Mar 2007
    Beans
    Hidden!
    Distro
    Xubuntu 9.10 Karmic Koala

    Re: HOWTO: MLB Baseball scores from the command line!

    Houston's just not playing today. "Houston" works for yesterday if you put the date code in the URL:
    Code:
    lynx -nonumbers -dump http://scores.espn.go.com/mlb/scoreboard?date=20080430 | egrep -i -A12 -B2 'Houston'
    I figured this out by just looking at the actual website in Firefox:
    http://scores.espn.go.com/mlb/scoreboard

    That's no fun, though.

  9. #19
    Join Date
    Jul 2006
    Beans
    39
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: MLB Baseball scores from the command line!

    Quote Originally Posted by jetsam View Post
    Houston's just not playing today. "Houston" works for yesterday if you put the date code in the URL:
    Code:
    lynx -nonumbers -dump http://scores.espn.go.com/mlb/scoreboard?date=20080430 | egrep -i -A12 -B2 'Houston'
    I figured this out by just looking at the actual website in Firefox:
    http://scores.espn.go.com/mlb/scoreboard

    That's no fun, though.
    Thanks. I thought that might be the case, but I wasn't sure if the code grabbed the current game or just the most recent. That's good to know.

  10. #20
    Join Date
    Apr 2007
    Location
    Alabama
    Beans
    76
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: MLB Baseball scores from the command line!

    Let me start by saying thanks for the great work on this,It's nice to see some sports fans here.I need a little help with this. In the screen shot you can see that the score stops at the sixth inning for the home team,everything is fine until the 8th inning and it reverts to this for the home teams only.I have googled for the code help but can't find anything to fix it.
    Attached Images Attached Images
    Toshiba Satellite A105-S1712 Laptop with Hardy 32bit.Yes it has ATI chipset and yes suspend works

Page 2 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •