Copying clean Yahoo, ESPN rosters - Fantasy Baseball Cafe 2014 Fantasy Baseball Cafe
100% Deposit Bonus for Cafe Members!

Return to Baseball Leftovers

Copying clean Yahoo, ESPN rosters

Moderator: Baseball Moderators

Copying clean Yahoo, ESPN rosters

Postby Bwanna » Thu Apr 26, 2007 1:33 am

Here is a 'bookmarklet' that will copy and clean up a Yahoo roster directly from your (or any owner's) Yahoo roster page with one click.

The resulting cleaned up roster will be placed on your clipboard and will be formatted like the following example:

Code: Select all
Batters
C - Johnny Estrada  (Mil - C) 
1B - David Ortiz  (Bos - 1B) 
2B - Brandon Phillips  (Cin - 2B) 
3B - Garrett Atkins  (Col - 3B) 
SS - Michael Young  (Tex - SS) 
CI - Jose Vidro  (Sea - 1B,2B) 
MI - J.J. Hardy  (Mil - SS) 
OF - Ty Wigginton  (TB - 1B,2B,3B,OF) 
OF - Grady Sizemore  (Cle - OF) 
OF - Magglio Ordonez  (Det - OF) 
OF - Corey Hart  (Mil - OF) 
Util - Mike Lowell  (Bos - 3B) 
BN - Willy Taveras  (Col - OF) 

Pitchers
SP - Ben Sheets  (Mil - SP) 
SP - Chris Young  (SD - SP) 
SP - Ian Snell  (Pit - SP) 
RP - Todd Jones  (Det - RP) 
RP - Ryan Dempster  (ChC - RP) 
P - David Weathers  (Cin - RP) 
P - Randy Wolf  (LAD - SP) 
BN - John Maine  (NYM - SP) 
BN - Henry Owens  (Fla - RP) 
DL - Felix Hernandez  (Sea - SP) DL

(from http://baseball.fantasysports.yahoo.com/b2/1172/12)

I've tested this with Firefox 2 and IE 6/7 and it works for me, and should as long as Yahoo doesn't make any drastic changes to the page format.

Anyway, I change my roster enough (too much) that it's nice to be able to grab the latest easily. Let me know if you find any problems or find it useful.

UPDATE: I've added another bookmarklet to grab a more compact version of the roster:

Code: Select all
Batters
C: Johnny Estrada (C)
1B: David Ortiz (1B)
2B: Brandon Phillips (2B)
3B: Garrett Atkins (3B)
SS: Michael Young (SS)
CI: Jose Vidro (1B,2B)
MI: J.J. Hardy (SS)
OF: Ty Wigginton (1B,2B,3B,OF), Grady Sizemore (OF), Magglio Ordonez (OF), Kenny Lofton (OF)
Util: Mike Lowell (3B)
BN: Willy Taveras (OF)

Pitchers
SP: Chris Young (SP), Ian Snell (SP), John Maine (SP)
RP: Todd Jones (RP), Ryan Dempster (RP)
P: David Weathers (RP), Henry Owens (RP)
BN: Ben Sheets (SP), Randy Wolf (SP)
DL: Felix Hernandez (SP)


UPDATE: There's a third bookmarklet that will copy the roster along with the currently displayed stats. Here's an example of output from this league:

Code: Select all
Y! Friends and Family League - fantasyguru - pianow stats for 2007 Season (as of Fri, Apr 27):

Batters                              Batting                 
Pos  Name                             H/AB  R HR RBI SB  AVG
C    John Buck (KC - C)              15/43  7  4   6  0 .349
1B   David Ortiz (Bos - 1B)          23/80 15  6  19  0 .288
2B   Brandon Phillips (Cin - 2B)     20/85 13  5  13  5 .235
3B   Garrett Atkins (Col - 3B)       20/77 10  2   9  1 .260
SS   Michael Young (Tex - SS)        17/89 10  2  14  1 .191
CI   Jose Vidro (Sea - 1B,2B)        23/72  9  2   8  0 .319
MI   J.J. Hardy (Mil - SS)           24/86 13  6  14  0 .279
OF   Ty Wigginton (TB - 1B,2B,3B,OF) 24/88 11  4  13  0 .273
OF   Grady Sizemore (Cle - OF)       18/70 21  4   8  6 .257
OF   Magglio Ordonez (Det - OF)      26/78 18  3  20  0 .333
OF   Willy Taveras (Col - OF)        15/58 10  0   2  4 .259
Util Mike Lowell (Bos - 3B)          24/76 11  4  18  0 .316
BN   Kenny Lofton (Tex - OF)         20/70 10  1   6  9 .286

Pitchers                          Pitching               
Pos Name                            IP W SV  K  ERA WHIP
SP  Chris Young (SD - SP)         27.0 2  0 21 4.33 1.48
SP  Ian Snell (Pit - SP)          27.0 1  0 24 2.00 1.00
SP  John Maine (NYM - SP)         26.1 3  0 22 1.71 1.10
RP  Todd Jones (Det - RP)         11.0 0  8  2 3.27 1.27
RP  Ryan Dempster (ChC - RP)      11.0 0  3 12 2.45 0.64
P   David Weathers (Cin - RP)      9.0 0  5  6 3.00 1.11
P   Henry Owens (Fla - RP)        12.2 1  1  6 2.84 1.18
BN  Ben Sheets (Mil - SP)         30.0 1  0 13 4.50 1.17
BN  Randy Wolf (LAD - SP)         30.0 3  0 31 4.20 1.17
DL  Felix Hernandez (Sea - SP) DL 17.1 2  0 18 1.56 0.69

If you notice, the first line indicates which stats were being displayed ('2007 Season'), the date was selected ('Fri, Apr 27'), and the league and team ('Y! Friends and Family League - fantasyguru - pianow').

The third bookmarklet also works with the Player List and Watch List pages. E.g., from this list it produces:

Code: Select all
Y! Friends and Family League - Player List:

Player                       Rankings     Batting                 
Name                         O-Rank Rank  H/AB  R HR RBI SB  AVG
Joe Crede (CWS - 3B)            135  672 17/77  6  2   8  0 .221
Coco Crisp (Bos - OF)           152  694 12/56  6  0   6  2 .214
Jorge Cantu (TB - 2B)           176 1006   0/2  0  0   0  0 .000
Craig Biggio (Hou - 2B)         183  195 21/81 10  3  10  1 .259
Brad Wilkerson (Tex - OF)       206  602  8/39  6  2   7  1 .205
Juan Rivera (LAA - OF) DL       217  977   -/-  -  -   -  -    -
Conor Jackson (Ari - 1B)        218  789 13/57  5  0   5  0 .228
Ryan Shealy (KC - 1B)           224 1065  5/49  1  1   4  0 .102
Pedro Feliz (SF - 3B)           231  662 12/56  4  3   7  0 .214
Mark Loretta (Hou - 1B,2B)      233  592 13/36  5  0   5  1 .361
Bengie Molina (SF - C)          236  641 20/67  3  1   7  0 .299
Craig Monroe (Det - OF)         242  782 11/68  5  1  11  0 .162
Johnny Estrada (Mil - C)        247  612 19/66 10  0   4  0 .288
Andre Ethier (LAD - OF)         248  266 14/57  7  3  10  0 .246
Troy Tulowitzki (Col - SS)      251  828 12/65  5  0   5  1 .185
Matt Murton (ChC - OF)          256  755 10/37  6  0   2  0 .270
Jonny Gomes (TB - OF)           257 1039  3/21  1  0   1  1 .143
Kevin Mench (Mil - OF)          259  138 21/59 11  2   8  0 .356
Randy Winn (SF - OF)            260  781 15/64  4  0   7  0 .234
Jacque Jones (ChC - OF)         262  692 20/77  8  0   3  1 .260
Sean Casey (Det - 1B)           265 1071 13/70  2  0   1  0 .186
Jose Guillen (Sea - OF)         267  675 12/56  8  2   4  0 .214
Preston Wilson (StL - OF)       268  716 12/54  5  1   5  1 .222
Garret Anderson (LAA - OF)      269  234 23/91 15  1   9  0 .253
Casey Blake (Cle - 1B,3B,OF)    272  762 14/70  8  1   5  0 .200

Play around with it, you'll see how it works. Hope it helps you out. I'm sure that eventually Yahoo will provide a printable version of the stats, but until then, enjoy. Let me know if you have any problems.

UPDATE: The fourth and fifth bookmarklets copy ESPN rosters. Here are a couple of examples of output from this ESPN roster:

Code: Select all
BATTERS
C - Michael Barrett, ChC C
1B - Jason Giambi, NYY 1B, DH
2B - Ty Wigginton, TB 1B, 2B, 3B
3B - Miguel Cabrera, Fla 3B
SS - Carlos Guillen, Det SS
OF - Vladimir Guerrero, LAA OF, DH
OF - Ichiro Suzuki, Sea OF
OF - Carlos Lee, Hou OF
UTIL - Torii Hunter, Min OF
Bench - Rocco Baldelli, TB OF
Bench - Tadahito Iguchi, CWS 2B
Bench - Josh Hamilton, Cin OF

PITCHERS
P - Huston Street, Oak RP
P - J.J. Putz, Sea RP
P - Bobby Jenks, CWS RP
P - Armando Benitez, SF RP
P - Ervin Santana, LAA SP
P - Bartolo Colon, LAA SP
Bench - Brandon Webb, Ari SP
Bench - C.C. Sabathia, Cle SP


Compact version:

Code: Select all
BATTERS
C: Michael Barrett (ChC C)
1B: Jason Giambi (NYY 1B,DH)
2B: Ty Wigginton (TB 1B,2B, 3B)
3B: Miguel Cabrera (Fla 3B)
SS: Carlos Guillen (Det SS)
OF: Vladimir Guerrero (LAA OF,DH), Ichiro Suzuki (Sea OF), Carlos Lee (Hou OF)
UTIL: Torii Hunter (Min OF)
Bench: Rocco Baldelli (TB OF), Tadahito Iguchi (CWS 2B), Josh Hamilton (Cin OF)

PITCHERS
P: Huston Street (Oak RP), J.J. Putz (Sea RP), Bobby Jenks (CWS RP), Armando Benitez (SF RP), Ervin Santana (LAA SP), Bartolo Colon (LAA SP)
Bench: Brandon Webb (Ari SP), C.C. Sabathia (Cle SP)


UPDATE: Someone using IE7 was having trouble understanding the directions for adding these. Here's a step by step for IE7:

1. Go to this page:
http://glenncarr.com/yahoofantasy/ClipYahooRoster.htm

2. Right-click on one of the bookmarklets links.

3. Select 'Add to Favorites...' from the menu that pops up. When it says 'Security Alert: You are adding a favorite that may not be safe. Do you want to continue?' select 'Yes'

4. An 'Add a Favorite' dialog box should popup. Set 'Create in' to 'Favorites'. Click 'Add'.

5. Go to your Yahoo roster page in the browser.

6. Go to the IE favorites menu, and select the bookmark you just added. A warning may pop up saying 'Do you want to allow this webpage to access your clipboard?'. Click 'Allow access'. At that point it should display a dialog saying 'The following roster has been copied to the clipboard: ...'. Click 'OK'.

7. Your roster should be on your Windows clipboard to paste wherever.

Repeat steps 2-4 for any other bookmarklets you want.
Last edited by Bwanna on Wed May 02, 2007 11:46 am, edited 8 times in total.
Bwanna
Hall of Fame Hero
Hall of Fame Hero

User avatar
CafeholicEagle EyeInnovative MemberWeb Supporter
Posts: 5646
(Past Year: 262)
Joined: 27 Sep 2005
Home Cafe: Baseball

Postby Super Manny » Thu Apr 26, 2007 1:35 am

Thanks! ;-D
Image

"When you don't feel good and you still get hits, that's when you know you are a bad man." -Manuel A. Ramirez
Super Manny
Major League Manager
Major League Manager

User avatar
Graphics Expert
Posts: 1142
Joined: 12 Jun 2004
Home Cafe: Baseball

Postby pokerplaya » Thu Apr 26, 2007 1:36 am

Nice.

Thanks. ;-D
pokerplaya
Kitchen Staff
Kitchen Staff

User avatar
CafeholicFantasy ExpertCafe WriterCafe RankerMock(ing) DrafterEagle EyeCafe MusketeerPick 3 Weekly WinnerLucky Ladders Weekly Winner
Posts: 12812
(Past Year: 9)
Joined: 18 May 2004
Home Cafe: Baseball

Postby nbb23 » Thu Apr 26, 2007 1:38 am

Wow, that is Awesome!! Thx!!
nbb23
Minor League Mentor
Minor League Mentor


Posts: 443
Joined: 5 Oct 2006
Home Cafe: Baseball

Postby Archduke Chocula » Thu Apr 26, 2007 8:31 am

Slick.
Don't tase me, bro.
Archduke Chocula
College Coach
College Coach

User avatar

Posts: 179
Joined: 8 Jan 2007
Home Cafe: Baseball

Postby aadams732 » Thu Apr 26, 2007 10:05 am

nice
aadams732
Minor League Mentor
Minor League Mentor

User avatar

Posts: 505
Joined: 24 Apr 2007
Home Cafe: Baseball

Postby Bwanna » Thu Apr 26, 2007 10:06 am

EDIT: Moved content of this post to the first post.
Last edited by Bwanna on Thu Apr 26, 2007 1:52 pm, edited 1 time in total.
Bwanna
Hall of Fame Hero
Hall of Fame Hero

User avatar
CafeholicEagle EyeInnovative MemberWeb Supporter
Posts: 5646
(Past Year: 262)
Joined: 27 Sep 2005
Home Cafe: Baseball

Postby giambiformvp » Thu Apr 26, 2007 10:47 am

This is great, thanks!
giambiformvp
Minor League Mentor
Minor League Mentor

User avatar

Posts: 605
Joined: 2 Apr 2005
Home Cafe: Baseball

Postby Chrisy Moltisanti » Thu Apr 26, 2007 10:52 am

clutch ;-D
Image
Chrisy Moltisanti
Major League Manager
Major League Manager

User avatar

Posts: 1536
Joined: 10 Jun 2006
Home Cafe: Basketball
Location: 6 feet under

Postby zEli173 » Thu Apr 26, 2007 11:38 am

cool
zEli173
Minor League Mentor
Minor League Mentor

User avatar

Posts: 569
Joined: 6 Jun 2003
Home Cafe: Baseball

Next

Return to Baseball Leftovers

Who is online

Users browsing this forum: No registered users and 9 guests

Forums Articles & Tips Sleepers Rankings Leagues


Today's Games
Wednesday, Aug. 27
(All times are EST, weather icons show forecast for game time)

St. Louis at Pittsburgh
(12:35 pm)
Texas at Seattle
(3:40 pm)
Tampa Bay at Baltimore
(7:05 pm)
Washington at Philadelphia
(7:05 pm)
Boston at Toronto
(7:07 pm)
NY Yankees at Detroit
(7:08 pm)
Atlanta at NY Mets
(7:10 pm)
Chi Cubs at Cincinnati
(7:10 pm)
Cleveland at Chi White Sox
(8:10 pm)
Oakland at Houston
(8:10 pm)
Minnesota at Kansas City
(8:10 pm)
Milwaukee at San Diego
(9:10 pm)
LA Dodgers at Arizona
(9:40 pm)
Miami at LA Angels
(10:05 pm)
Colorado at San Francisco
(10:15 pm)

  • Fantasy Baseball
  • Article Submissions
  • Privacy Statement
  • Site Survey 
  • Contact