Description Slots Note Examples
Source sites are one of the foundations to the data scrapes. They are representing the web sites that provides data for the projections. The sources can be different for weekly and seasonal data and the type of data can be different. If the data is scraped from HTML then the playerId can be derived as well.
siteId
The ID for the site as identfied in configuration data
siteName
Name of source site
siteUrl
String that represents the URL that the site uses for the seasonal data, if any.
urlType
String that identifies the type of data in seasonURL (HTML, XML, CSV or file)
urlTable
A character string identifying which table to grab from seasonURL
playerLink
A string representing part of the URL to a player profile
playerId
What to call the id number for player if present
When specifying the URLs paramters can be used as place holders.
1 2 3 4 5 6 | sourceSite(siteName = "CBS",
siteUrl = "http://www.cbssports.com/fantasy/football/stats/weeklyprojections/{$Pos}/season/{$SrcID}/standard?&print_rows=9999",
urlType = "html",
urlTable = "1",
playerLink = "/fantasyfootball/players/playerpage/[0-9]{3,6}",
playerId = "cbsId")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.