ESPN League Dollar Values

10 Comments
April 27th, 2009 by Mays
Categories: Price Guide, Site News

You may have noticed the latest Greasemonkey script link on the Price Guide — a script for ESPN leagues.

Here’s what the Player Rater looks like in the FantasyPros911 Experts League, a standard AL-only league:

ESPN Player Rater with Dollar Values

With both the top fantasy hitter and the most valuable fantasy pitcher on his team, it’s not surprising that Perry Van Hook has a solid grip on 1st place.

You can get dollar values customized for you own league with the Price Guide. From there, you should see links to add the prices to your league homepage (Yahoo, ESPN, CBS, or Allstar Stats).

Related posts:

10 Responses to “ESPN League Dollar Values”

  1. Ron says:

    On the ESPN Greasemonkey script, if I go to a team page and change the view (either change the day or change to last 7 or last 15, etc.), I lose the Price Guide values. It does the same thing on free agents.

  2. Mays says:

    @Ron: Yeah, I’ve noticed that, too. CBS and ESPN both try to do fancy stuff to update sections of the page without reloading the entire page, which is the only time the scripts currently run.

    I’m still looking for a way to handle this.

  3. Rom says:

    On ESPN’s roster page, they have a method called players that handles the Ajax calls they are making. They define a method within that called _complete that fires when the results are returned from their web servers.

    I’m not familiar with coding Gresemonkey scripts, but maybe you could hook into/modify that somehow to fire your stuff whenever that is called.

  4. Mays says:

    @Rom: That’s basically the idea of what I’m after, although with Greasemonkey you’re going to be hooking an event instead of function call.

    I think I actually have it working for everything except CBS’s live scoring page (and you can try out the new scripts from the Price Guide page). I’ll make a post announcing the update once I handle that last page.

  5. Sean Smith says:

    I’m getting multiple listings of dollars on the page. I changed my league settings, so I generated a new price and loaded the script again. It’s listing multiple dollar amounts for each player. How do I clear it and start over?

    Sean

  6. Mays says:

    @Sean: In Firefox, go to Tools -> Greasemonkey -> Manage user scripts. Select the old script (highest on the list) and choose “Uninstall.”

  7. Jeff says:

    Mays- after successfully viewing the dollar values (generated from the 2010 Composite Adj. Data Source) on the ESPN Greasemonkey script, I decided to go ahead and upload my own projections to generate a new price guide. After successfully generating a new price guide, I tried to add my new dollar values to my ESPN league; however, the old dollar values remained in place. For example, $45 shows up next to Hanley’s name instead of the $37 that’s stated in my new price guide.

    I followed the steps that you told Sean in the previous comment, but now the dollar values don’t even appear. Can you offer any suggestions on what to do?

    Many thanks!

  8. Mays says:

    @Jeff:

    I think the problem is that on the upload templates, there are no player IDs, and the player IDs are what ties the dollar values to the league pages.

    If you are wanting to use uploaded projections on your league site, you’ll need to add a “mlbamID” column to your CSV files. You can see what it would need to look like here:

    http://www.lastplayerpicked.com/priceguide/templates/BattingTemplateIDs.csv
    http://www.lastplayerpicked.com/priceguide/templates/PitchingTemplateIDs.csv

    The “mlbamID” is also shown if you choose “Export to CSV” on the results of any of the default projections. If you’re comfortable with Excel, you can add those pretty quickly, but it can be slow otherwise. However, there’s no way to get around using the IDs.

    Let me know if you still have any problems with it.

  9. Jeff says:

    Thanks Mays for getting back to me so quickly. I’m not quite sure how to link up the “mlbamID” or “espnID” with the correct players on my uploaded projections since I only have last names in my “playerName” column. I appreciate your help though. My printed Price Guide will still come in handy!

  10. Ron says:

    Your ESPN script shows the values twice for any player with a breaking news icon next to his name. I made a tweak to fix it on my local copy, but I thought you might want to fix yours. It was an easy fix. Contact me if you want it.

Leave a Reply