Yeah like I said, it's just a matter of playing around with the right parsed output, the logic remains the same (ie, Use Lynx to fetch the content).
Yeah like I said, it's just a matter of playing around with the right parsed output, the logic remains the same (ie, Use Lynx to fetch the content).
I have tried playing around with parsed output but I cant get it to work correctly.It would be nice to get the output of the commnad in the terminal to be the same as in conky,I am trying to get the output in a second conky but without much luck.As you can tell I am still somewhat new to conky code.
Toshiba Satellite A105-S1712 Laptop with Hardy 32bit.Yes it has ATI chipset and yes suspend works
bump
Mine is showing a bunch of highlight links underneath in conky (Box score, play-by-play, etc.)
Hmm. 'Tis the season, and this doesn't work very well any more because ESPN changed their page layout.
Anyone have any ideas on how to fix?
Okay... hopefully I can provide a service, in exchange for a little help. I can get around the issue with the formatting of the ESPN site. But I need some Conky support.
I just got my first Ubuntu machine a week ago (a Dell Mini 9) and installed Conky yesterday... and really have no idea how to set this up in my config file to get it to update properly. So if someone would be willing to share a snippet of their config file in exchange, I would greatly appreciate it!
Instead of using the ESPN feed, I use 4Info (m.4info.com). It is a WAP site designed for older cell phones -- and the formatting of the pages have not changed in years. The pages are super bare bones and offers sports, weather and other info.
When I do a search on a team name (like the Tribe) and then click on the link for the team name, I get a URL like this: http://m.4info.com/search?searchQuery=Cleveland+Indians
I then format the lynx command like this:
Code:lynx -nonumbers -nolist -dump http://m.4info.com/search?searchQuery=Cleveland+Indians | egrep -i -B2 -A4 "Status"
...which gets me this output:
Code:Cleveland Indians (1-6) (R) 2 (H) 10 (E) 0 Kansas City Royals (4-3) (R) 4 (H) 5 (E) 0 Status: Final Date: 4/13 Winning Pitcher: Zack Greinke (2-0) Losing Pitcher: Fausto Carmona (0-2) Saving Pitcher: Joakim Soria (4 saves)
Aha. I found this post that had the answer: http://ubuntuforums.org/showthread.php?t=765841
Now I can follow every agonizing step in the Indians' terrible 1-6 start to the 2009 season right on my desktop.
Much belated thanks to gschroder. I somehow missed the solution even though I asked for it last season.
I'll be using this without doubt this season.
...
Sometimes all I really wanna know, though, is Who's on First?!
I"m just configuring my conky script using Lynx to fetch the content.
I've managed to fetch the correct data, but I only want the "EAST" division to show and not the central. Below is the input and output.
Thanks in advance!!!
nitro@nitro-laptop:~$ lynx -nonumbers -dump http://scores.espn.go.com/mlb/standings | egrep -A12 "American League" American League
EAST W L PCT GB HOME ROAD RS RA DIFF STRK L10
Tampa Bay 22 8 .733 - 9-6 13-2 174 90 +84 Lost 1 7-3
NY Yankees 20 8 .714 1 10-2 10-6 161 99 +62 Won 5 8-2
Toronto 18 13 .581 4.5 7-10 11-3 149 129 +20 Won 6 8-2
Boston 15 15 .500 7 9-9 6-6 153 160 -7 Lost 1 6-4
Baltimore 9 21 .300 13 4-8 5-13 106 147 -41 Won 2 5-5
CENTRAL W L PCT GB HOME ROAD RS RA DIFF STRK L10
Minnesota 19 11 .633 - 9-5 10-6 152 115 +37 Lost 2 5-5
Detroit 17 13 .567 2 9-3 8-10 145 139 +6 Won 1 6-4
Chicago Sox 12 18 .400 7 8-9 4-9 122 148 -26 Lost 2 4-6
Kansas City 11 19 .367 8 4-8 7-11 126 165 -39 Lost 3 3-7
Cleveland 10 18 .357 8 5-8 5-10 99 140 -41 Lost 5 2-8
Okay I solved it people. All I had to change was the A12 to A6.
A stands for the number of lines. I figured this out and thought it might help anyone out there, thats why I'm posting this.
nitro@nitro-laptop:~$ lynx -nonumbers -dump http://scores.espn.go.com/mlb/standings | egrep -A6 "American League"
American League
EAST W L PCT GB HOME ROAD RS RA DIFF STRK L10
Tampa Bay 22 8 .733 - 9-6 13-2 174 90 +84 Lost 1 7-3
NY Yankees 21 8 .724 .5 10-2 11-6 175 102 +73 Won 6 9-1
Toronto 18 14 .563 5 7-10 11-4 152 136 +16 Lost 1 8-2
Boston 15 16 .484 7.5 9-10 6-6 156 174 -18 Lost 2 5-5
Baltimore 9 22 .290 13.5 4-8 5-14 107 153 -46 Lost 1 5-5
Bookmarks