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

Postby jfg » Thu Apr 26, 2007 5:44 pm

Bwanna wrote:
jfg wrote:Is there a way to make it so that when you are on 2007 stats that can be added to the clipboard as well? I'm guessing this would be harder to do since league formats are different.


The code tries to assume as little as possible about league-specific stuff, so it shouldn't be much trouble. I'll take a whack at it later tonight.


That would be awesome! Thanks!
jfg
Hall of Fame Hero
Hall of Fame Hero

User avatar
CafeholicGolden Eagle EyeMatchup Meltdown SurvivorLucky Ladders Weekly WinnerTrivia Time Trial Monthly Winner
Posts: 6077
(Past Year: 169)
Joined: 4 Nov 2006
Home Cafe: Baseball

Postby pokeyjoe » Thu Apr 26, 2007 5:48 pm

That's awesome man, thanks.
[URL=http://imageshack.us]Image[/URL]
pokeyjoe
Minor League Mentor
Minor League Mentor

User avatar

Posts: 877
Joined: 9 Apr 2006
Home Cafe: Baseball
Location: Jersey

Postby jfg » Fri Apr 27, 2007 11:26 am

Were you able to do anything with the stats?
jfg
Hall of Fame Hero
Hall of Fame Hero

User avatar
CafeholicGolden Eagle EyeMatchup Meltdown SurvivorLucky Ladders Weekly WinnerTrivia Time Trial Monthly Winner
Posts: 6077
(Past Year: 169)
Joined: 4 Nov 2006
Home Cafe: Baseball

Postby Kingctb27 » Fri Apr 27, 2007 11:56 am

Sweet. ;-D
Kingctb27
Hall of Fame Hero
Hall of Fame Hero

User avatar
Eagle EyeLucky Ladders Champion
Posts: 7189
Joined: 11 Oct 2004
Home Cafe: Baseball
Location: Golfing

Postby 5 » Fri Apr 27, 2007 12:40 pm

good work there, Bwanna. that should definitely come in handy.
5
General Manager
General Manager

User avatar

Posts: 2296
Joined: 24 Feb 2006
Home Cafe: Baseball

Postby Bwanna » Fri Apr 27, 2007 3:09 pm

jfg wrote:Were you able to do anything with the stats?


Yeah.

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').

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.
Last edited by Bwanna on Fri Apr 27, 2007 5:49 pm, edited 5 times in total.
[reg season/playoffs]
LFoD '08 [1st/3rd], '10 [1st/3rd], '11 [1st/2nd], '12 [1st/1st]
123Innings '08 [1st/1st], '09 [1st/3rd], '10 [1st/4th], '12 [4th/2nd]
BRAL '09 2nd, '10 1st
Cool 3.0 '08 1st
Bwanna
Hall of Fame Hero
Hall of Fame Hero

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

Postby Bwanna » Fri Apr 27, 2007 4:02 pm

With a couple of tweaks, I made the third bookmarklet ('ClipYahooRoster Bookmarklet - with stats') work with the Player List and Watch List pages. E.g., from this list:
http://baseball.fantasysports.yahoo.com/b2/1172/players

...it produces this:

Code: Select all
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
Last edited by Bwanna on Fri Apr 27, 2007 4:24 pm, edited 2 times in total.
[reg season/playoffs]
LFoD '08 [1st/3rd], '10 [1st/3rd], '11 [1st/2nd], '12 [1st/1st]
123Innings '08 [1st/1st], '09 [1st/3rd], '10 [1st/4th], '12 [4th/2nd]
BRAL '09 2nd, '10 1st
Cool 3.0 '08 1st
Bwanna
Hall of Fame Hero
Hall of Fame Hero

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

Postby Bwanna » Fri Apr 27, 2007 4:19 pm

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 three bookmarklets ('ClipYahooRoster Bookmarklet', 'ClipYahooRoster Bookmarklet - compact', or 'ClipYahooRoster Bookmarklet - with stats')

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 with a default name 'Clip Yahoo Roster' (depending on which of the three you chose above), and 'Create in' set 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 ('Clip Yahoo Roster'). A warning will 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 the remaining two bookmarklets, and you should have three bookmarks in your favorites.
[reg season/playoffs]
LFoD '08 [1st/3rd], '10 [1st/3rd], '11 [1st/2nd], '12 [1st/1st]
123Innings '08 [1st/1st], '09 [1st/3rd], '10 [1st/4th], '12 [4th/2nd]
BRAL '09 2nd, '10 1st
Cool 3.0 '08 1st
Bwanna
Hall of Fame Hero
Hall of Fame Hero

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

Postby jfg » Fri Apr 27, 2007 7:13 pm

You're great. Somebody give this guy some kind of reward to put on his avatar or something!
jfg
Hall of Fame Hero
Hall of Fame Hero

User avatar
CafeholicGolden Eagle EyeMatchup Meltdown SurvivorLucky Ladders Weekly WinnerTrivia Time Trial Monthly Winner
Posts: 6077
(Past Year: 169)
Joined: 4 Nov 2006
Home Cafe: Baseball

Postby Bwanna » Fri Apr 27, 2007 11:08 pm

Glad it's useful.

If your Yahoo team is stinkin up the joint, try this. :-D
[reg season/playoffs]
LFoD '08 [1st/3rd], '10 [1st/3rd], '11 [1st/2nd], '12 [1st/1st]
123Innings '08 [1st/1st], '09 [1st/3rd], '10 [1st/4th], '12 [4th/2nd]
BRAL '09 2nd, '10 1st
Cool 3.0 '08 1st
Bwanna
Hall of Fame Hero
Hall of Fame Hero

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

PreviousNext

Return to Baseball Leftovers

Who is online

Users browsing this forum: No registered users and 6 guests

Forums Articles & Tips Sleepers Rankings Leagues


Today's Games
Thursday, Apr. 17
(All times are EST, weather icons show forecast for game time)

Atlanta at Philadelphia
(1:05 pm)
Cleveland at Detroit
(1:08 pm)
Toronto at Minnesota
(1:10 pm)
Seattle at Texas
(2:05 pm)
LA Dodgers at San Francisco
(3:45 pm)
Colorado at San Diego
(6:40 pm)
Milwaukee at Pittsburgh
(7:05 pm)
St. Louis at Washington
(7:05 pm)
NY Yankees at Tampa Bay
(7:10 pm)
indoors
Boston at Chi White Sox
(8:10 pm)
Kansas City at Houston
(8:10 pm)

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