Skip to content

Instantly share code, notes, and snippets.

@JohnPaulR
Created October 9, 2013 13:37
Show Gist options
  • Save JohnPaulR/6901423 to your computer and use it in GitHub Desktop.
Save JohnPaulR/6901423 to your computer and use it in GitHub Desktop.
{
"metadata": {
"name": "ESPNRosterGrab"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": "from bs4 import BeautifulSoup\nimport requests\n\nurl = raw_input(\"Enter a Website to extract the URL's from:\")\n\nr= requests.get(\"http://\" +url)\n\ndata = r.text\n\nsoup = BeautifulSoup(data)\n\nfor link in soup.find_all('a'):\n print(link.get('href'))\n ",
"language": "python",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"stream": "stdout",
"text": "Enter a Website to extract the URL's from:games.espn.go.com/ffl/leaguerosters?leagueId=280610\n"
},
{
"output_type": "stream",
"stream": "stdout",
"text": "http://espn.go.com/\nhttp://espndeportes.espn.go.com/\nhttp://www.espn.com.au\nhttp://www.espn.com.br\nhttp://www.espn.co.uk/\nhttp://espn.go.com/boston/\nhttp://espn.go.com/chicago/\nhttp://espn.go.com/dallas/\nhttp://espn.go.com/los-angeles/\nhttp://espn.go.com/new-york/\nhttp://espn.go.com\nhttp://ad.doubleclick.net/jump/espn.us.com.games/football;pgn=LeagueRosters;pgtyp=leaguerosters;lang=en;gm=ffl;pos=SponsoredByLogoHeader;mnr=f;u=pgn=LeagueRosters|pgtyp=leaguerosters|lang=en|gm=ffl|pos=SponsoredByLogoHeader|mnr=f|;dcopt=ist;sz=150x45tile=1;ord=1013247\nhttp://espnshop.com/entry.point?target=Z&source=ESPN_HPHEADERLINK:SHOPBUTTONHEADER:6_1_10\nhttp://ad.doubleclick.net/jump/espn.us.com.games/football;pgn=leaders;pgtyp=leaguerosters;lang=en;gm=ffl;pos=pencil_top;mnr=f;u=pgn=leaders|pgtyp=leaguerosters|lang=en|gm=ffl|pos=pencil_top|mnr=f|;dcopt=ist;sz=924x50tile=2;ord=1013247\nhttp://espn.go.com\nhttp://games.espn.go.com/ffl/frontpage\n/ffl/leagueoffice?leagueId=280610\n\n/ffl/leagueoffice?leagueId=280610&seasonId=2013\n/ffl/freeagency?leagueId=280610&seasonId=2013\n/ffl/standings?leagueId=280610&seasonId=2013\n/ffl/scoreboard?leagueId=280610&seasonId=2013\n#\n/ffl/clubhouse?leagueId=280610&teamId=1&seasonId=2013\n/ffl/clubhouse?leagueId=280610&teamId=2&seasonId=2013\n/ffl/clubhouse?leagueId=280610&teamId=3&seasonId=2013\n/ffl/clubhouse?leagueId=280610&teamId=8&seasonId=2013\n/ffl/clubhouse?leagueId=280610&teamId=9&seasonId=2013\n/ffl/clubhouse?leagueId=280610&teamId=10&seasonId=2013\n/ffl/clubhouse?leagueId=280610&teamId=11&seasonId=2013\n/ffl/clubhouse?leagueId=280610&teamId=12&seasonId=2013\n/ffl/clubhouse?leagueId=280610&teamId=13&seasonId=2013\n/ffl/clubhouse?leagueId=280610&teamId=14&seasonId=2013\n/ffl/leagueoffice?leagueId=280610\n/ffl/leaguesetup/settings?leagueId=280610\n/ffl/leaguesetup/ownerinfo?leagueId=280610\n/ffl/leaguerosters?leagueId=280610\n/ffl/schedule?leagueId=280610\n/ffl/history?leagueId=280610\n/ffl/trophycase?leagueId=280610&seasonId=2013\n/ffl/fantasyfootballtoolkit?leagueId=280610\n#\n/ffl/tools/transactioncounter?leagueId=280610\n/ffl/tools/draftrecap?leagueId=280610\n/ffl/clubhouse?leagueId=280610&teamId=1\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/ffl/clubhouse?leagueId=280610&teamId=2\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/ffl/clubhouse?leagueId=280610&teamId=3\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/ffl/clubhouse?leagueId=280610&teamId=8\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/ffl/clubhouse?leagueId=280610&teamId=9\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/ffl/clubhouse?leagueId=280610&teamId=10\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/ffl/clubhouse?leagueId=280610&teamId=11\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/ffl/clubhouse?leagueId=280610&teamId=12\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/ffl/clubhouse?leagueId=280610&teamId=13\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/ffl/clubhouse?leagueId=280610&teamId=14\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nhttp://www.espn.com\nhttps://r.espn.go.com/espn/memberServices\nhttp://games.espn.go.com/frontpage\nhttp://games.espn.go.com/ffl/content?page=fflrulesindex2013\nhttp://preferences.truste.com/2.0/?type=espn&affiliateId=148\nhttp://games.espn.go.com/ffl/feedback\nhttp://disneytermsofuse.com/\nhttp://disney.go.com/corporate/privacy/pp_espn.html\nhttp://www.nflplayers.com\nNone\nhttp://sports-ak.espn.go.com/nfl/\nhttp://sports-ak.espn.go.com/mlb/\nhttp://sports-ak.espn.go.com/nba/\nhttp://espn.go.com/nhl/\nhttp://sports-ak.espn.go.com/college-football/\nhttp://espn.go.com/mens-college-basketball/\nhttp://espn.go.com/racing/nascar/\nhttp://espnfc.com/\nhttp://espn.go.com/golf/\nhttp://espn.go.com/tennis/\nhttp://espn.go.com/boxing/\nhttp://espn.go.com/mma/\nhttp://espn.go.com/sports/\nhttp://insider.espn.go.com/insider/index\nhttp://espn.go.com/sportsnation/\nhttp://espn.go.com/espnradio/\nhttp://espn.go.com/espnw/\nhttp://games.espn.go.com/frontpage\nhttp://espn.go.com/video/\nhttp://games.espn.go.com/frontpage/football\nhttp://games.espn.go.com/ffl/tools/projections?seasonId=2013\nhttp://games.espn.go.com/ffl/addeddropped\nhttp://games.espn.go.com/frontpage/fantasyRankings\nhttp://games.espn.go.com/ffl/leaders?leagueId=280610\nhttp://games.espn.go.com/ffl/resources/playernews\nhttp://espn.go.com/mobile/products/products?id=8244799\nhttp://games.espn.go.com/ffl/resources/leaderboard?leagueId=280610\nhttp://games.espn.go.com/ffl/content?page=fflrulesfaq2013\njavascript:void(0);\nhttp://games.espn.go.com/frontpage/ffldraftkit\nhttp://games.espn.go.com/ffl/fantasyfootballtoolkit?leagueId=280610\nhttp://espn.go.com/fantasy/football/story/_/page/NFLDK2K13cheatsheetcentral/2013-fantasy-football-cheat-sheets-player-rankings-draft-board-standard-ppr\nhttp://games.espn.go.com/ffl/tools/undroppables\nhttp://games.espn.go.com/ffl/pointsagainst\nhttp://games.espn.go.com/ffl/tools/statcorrections\nhttp://games.espn.go.com/ffl/livedraftresults\nhttp://games.espn.go.com/ffl/content?page=fflrulesindex2013\nhttp://insider.espn.go.com/insider/fantasy/football/rosteradvisor/index\nhttp://insider.espn.go.com/insider/eliminator/survivalguide\nhttp://espn.go.com/fantasy/football/story/_/id/9547260/fantasy-football-tools-espn-insiders\nhttp://insider.espn.go.com/insider/fantasy/answerguys/index\nhttp://games.espn.go.com/frontpage/forums#!/category/1313609200-908-35\n"
}
],
"prompt_number": 6
},
{
"cell_type": "markdown",
"metadata": {},
"source": "the below works but only on the first table"
},
{
"cell_type": "code",
"collapsed": false,
"input": "import csv\n\nfrom bs4 import BeautifulSoup\n\nfrom urllib2 import urlopen\n\nsoup = BeautifulSoup(urlopen('http://games.espn.go.com/ffl/leaguerosters?leagueId=280610'))\n\ntable = soup.find('table', attrs={ 'class' : 'playerTableTable'})\n\nprint(table)\n\nheaders = [header.text for header in table.find_all('th')]\n\nrows = []\n\nfor row in table.find_all('tr'):\n rows.append([val.text.encode('utf8') for val in row.find_all('td')])\n \n\nwith open('output_file.csv', 'wb') as f:\n writer = csv.writer(f)\n writer.writerow(headers)\n writer.writerows(row for row in rows if row)\n \n\n#cat output_file.csv",
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": "<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" class=\"playerTableTable tableBody\" id=\"playertable_0\"><tr class=\"playerTableBgRowHead tableHead playertableSectionHeader\"><th colspan=\"3\"><a href=\"/ffl/clubhouse?leagueId=280610&amp;teamId=1\">FUCK JOKER ZOMBIES</a> (2-2)</th></tr><tr class=\"playerTableBgRowSubhead tableSubHead\"><td>SLOT</td><td>PLAYER, TEAM POS</td><td>ACQ</td></tr><tr class=\"pncPlayerRow playerTableBgRow0\" id=\"plyr13197\"><td class=\"slot_0 playerSlot\" id=\"slot_13197\" style=\"font-weight: bold;\">QB</td><td class=\"playertablePlayerName\" id=\"playername_13197\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"13197\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Sam Bradford</a>, StL\u00a0QB<a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"13197\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_breaking.png\" style=\"margin:0 6px 0 6px\" title=\"Breaking News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow1\" id=\"plyr12497\"><td class=\"slot_2 playerSlot\" id=\"slot_12497\" style=\"font-weight: bold;\">RB</td><td class=\"playertablePlayerName\" id=\"playername_12497\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"12497\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Arian Foster</a>, Hou\u00a0RB<a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"12497\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_breaking.png\" style=\"margin:0 6px 0 6px\" title=\"Breaking News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow0\" id=\"plyr11289\"><td class=\"slot_2 playerSlot\" id=\"slot_11289\" style=\"font-weight: bold;\">RB</td><td class=\"playertablePlayerName\" id=\"playername_11289\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"11289\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Ray Rice</a>, Bal\u00a0RB<a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"11289\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_breaking.png\" style=\"margin:0 6px 0 6px\" title=\"Breaking News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow1\" id=\"plyr9838\"><td class=\"slot_3 playerSlot\" id=\"slot_9838\" style=\"font-weight: bold;\">RB/WR</td><td class=\"playertablePlayerName\" id=\"playername_9838\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"9838\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Marques Colston</a>, NO\u00a0WR<a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"9838\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_breaking.png\" style=\"margin:0 6px 0 6px\" title=\"Breaking News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow0\" id=\"plyr13216\"><td class=\"slot_4 playerSlot\" id=\"slot_13216\" style=\"font-weight: bold;\">WR</td><td class=\"playertablePlayerName\" id=\"playername_13216\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"13216\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Demaryius Thomas</a>, Den\u00a0WR<a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"13216\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_breaking.png\" style=\"margin:0 6px 0 6px\" title=\"Breaking News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow1\" id=\"plyr2578\"><td class=\"slot_4 playerSlot\" id=\"slot_2578\" style=\"font-weight: bold;\">WR</td><td class=\"playertablePlayerName\" id=\"playername_2578\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"2578\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Reggie Wayne</a>, Ind\u00a0WR<a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"2578\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_breaking.png\" style=\"margin:0 6px 0 6px\" title=\"Breaking News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow0\" id=\"plyr9684\"><td class=\"slot_6 playerSlot\" id=\"slot_9684\" style=\"font-weight: bold;\">TE</td><td class=\"playertablePlayerName\" id=\"playername_9684\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"9684\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Owen Daniels</a>, Hou\u00a0TE\u00a0\u00a0<span style=\"font-weight:bold;color: red;\" title=\"Questionable\">Q</span><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"9684\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_breaking.png\" style=\"margin:0 6px 0 6px\" title=\"Breaking News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow1\" id=\"plyr60034\"><td class=\"slot_16 playerSlot\" id=\"slot_60034\" style=\"font-weight: bold;\">D/ST</td><td class=\"playertablePlayerName\" id=\"playername_60034\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"60034\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Texans D/ST</a>\u00a0D/ST</td><td class=\"\" id=\"\" style=\"null\"><span title=\"October 02, 2013\">Free Agency</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow0\" id=\"plyr15091\"><td class=\"slot_17 playerSlot\" id=\"slot_15091\" style=\"font-weight: bold;\">K</td><td class=\"playertablePlayerName\" id=\"playername_15091\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"15091\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Randy Bullock</a>, Hou\u00a0K<a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"15091\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_breaking.png\" style=\"margin:0 6px 0 6px\" title=\"Breaking News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow1\" id=\"plyr14875\"><td class=\"slot_20 playerSlot\" id=\"slot_14875\" style=\"font-weight: bold;\">Bench</td><td class=\"playertablePlayerName\" id=\"playername_14875\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"14875\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Robert Griffin III</a>, Wsh\u00a0QB</td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow0\" id=\"plyr13934\"><td class=\"slot_20 playerSlot\" id=\"slot_13934\" style=\"font-weight: bold;\">Bench</td><td class=\"playertablePlayerName\" id=\"playername_13934\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"13934\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Antonio Brown</a>, Pit\u00a0WR</td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow1\" id=\"plyr15786\"><td class=\"slot_20 playerSlot\" id=\"slot_15786\" style=\"font-weight: bold;\">Bench</td><td class=\"playertablePlayerName\" id=\"playername_15786\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"15786\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Tavon Austin</a>, StL\u00a0WR<a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"15786\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_breaking.png\" style=\"margin:0 6px 0 6px\" title=\"Breaking News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow0\" id=\"plyr11458\"><td class=\"slot_20 playerSlot\" id=\"slot_11458\" style=\"font-weight: bold;\">Bench</td><td class=\"playertablePlayerName\" id=\"playername_11458\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"11458\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Steve Johnson</a>, Buf\u00a0WR<a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"11458\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_recent.png\" style=\"margin:0 6px 0 6px\" title=\"Recent News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow1\" id=\"plyr11257\"><td class=\"slot_20 playerSlot\" id=\"slot_11257\" style=\"font-weight: bold;\">Bench</td><td class=\"playertablePlayerName\" id=\"playername_11257\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"11257\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Rashard Mendenhall</a>, Ari\u00a0RB<a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"11257\" seasonid=\"2013\" tab=\"1\" teamid=\"-2147483648\"><img border=\"0\" height=\"12\" src=\"http://g.espncdn.com/s/ffllm/13/images/icons/sml/news_breaking.png\" style=\"margin:0 6px 0 6px\" title=\"Breaking News\" width=\"15\"/></a></td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 02, 2013\">Draft</span></td></tr><tr class=\"pncPlayerRow playerTableBgRow0\" id=\"plyr14129\"><td class=\"slot_20 playerSlot\" id=\"slot_14129\" style=\"font-weight: bold;\">Bench</td><td class=\"playertablePlayerName\" id=\"playername_14129\" style=\"\"><a cache=\"true\" class=\"flexpop\" content=\"tabs#ppc\" fpopheight=\"357px\" fpopwidth=\"490px\" href=\"\" instance=\"_ppc\" leagueid=\"280610\" playerid=\"14129\" seasonid=\"2013\" tab=\"null\" teamid=\"-2147483648\">Bilal Powell</a>, NYJ\u00a0RB</td><td class=\"\" id=\"\" style=\"null\"><span title=\"September 25, 2013\">Free Agency</span></td></tr></table>\n"
}
],
"prompt_number": 54
},
{
"cell_type": "markdown",
"metadata": {},
"source": "Final this works and Grabs the rosters"
},
{
"cell_type": "code",
"collapsed": false,
"input": "import csv\nfrom bs4 import BeautifulSoup\nfrom urllib2 import urlopen\nimport string\nimport re\n\nrows = []\n\n\n\nsoup = BeautifulSoup(urlopen('http://games.espn.go.com/ffl/leaguerosters?leagueId=280610'))\n\nfor table in soup.findAll('table', attrs={ 'class' : 'playerTableTable'}):\n team = [header.text for header in table.find_all('th')]\n team= [team[0][:-6]]\n for row in table.find_all('tr'):\n #print(row)\n if len(row)>1:\n levelone = [val.text.encode('utf8') for val in row.find_all('td')]\n #print(levelone)\n if levelone != ['SLOT', 'PLAYER, TEAM POS', 'ACQ'] and len(levelone)>0:\n playerdata = levelone[1].split(\",\")\n #print(playerdata)\n if len(playerdata)>1:\n player2 = re.compile(\"\\W\").split(playerdata[1])\n player2 = filter(None, player2)\n #print(player2)\n player1 = [playerdata[0]]\n #print(player1)\n x = team + [levelone[0]]+ player1 + player2[:2]\n #print(x)\n else:\n player1 = re.compile(\"\\W\").split(playerdata[0])\n x = team + [levelone[0]] + player1[:2]\n #print(x)\n \n rows.append(x)\nprint(rows)\n \n\n \n\n#with open('output_file.csv', 'wb') as f:\n# writer = csv.writer(f)\n# writer.writerows(row for row in rows if row)",
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": "[[u'FUCK JOKER ZOMBIES', 'QB', 'Robert Griffin III', 'Wsh', 'QB'], [u'FUCK JOKER ZOMBIES', 'RB', 'Arian Foster', 'Hou', 'RB'], [u'FUCK JOKER ZOMBIES', 'RB', 'Ray Rice', 'Bal', 'RB'], [u'FUCK JOKER ZOMBIES', 'RB/WR', 'Marques Colston', 'NO', 'WR'], [u'FUCK JOKER ZOMBIES', 'WR', 'Demaryius Thomas', 'Den', 'WR'], [u'FUCK JOKER ZOMBIES', 'WR', 'Reggie Wayne', 'Ind', 'WR'], [u'FUCK JOKER ZOMBIES', 'TE', 'Owen Daniels*', 'Hou', 'TE'], [u'FUCK JOKER ZOMBIES', 'D/ST', 'Texans', 'D'], [u'FUCK JOKER ZOMBIES', 'K', 'Randy Bullock', 'Hou', 'K'], [u'FUCK JOKER ZOMBIES', 'Bench', 'Antonio Brown', 'Pit', 'WR'], [u'FUCK JOKER ZOMBIES', 'Bench', 'Tavon Austin', 'StL', 'WR'], [u'FUCK JOKER ZOMBIES', 'Bench', 'Steve Johnson', 'Buf', 'WR'], [u'FUCK JOKER ZOMBIES', 'Bench', 'Rashard Mendenhall', 'Ari', 'RB'], [u'FUCK JOKER ZOMBIES', 'Bench', 'Sam Bradford', 'StL', 'QB'], [u'FUCK JOKER ZOMBIES', 'Bench', 'Bilal Powell', 'NYJ', 'RB'], [u'BEGGING FOR A PEGGING', 'QB', 'Aaron Rodgers', 'GB', 'QB'], [u'BEGGING FOR A PEGGING', 'RB', 'Johnathan Franklin', 'GB', 'RB'], [u'BEGGING FOR A PEGGING', 'RB', 'LeGarrette Blount', 'NE', 'RB'], [u'BEGGING FOR A PEGGING', 'RB/WR', 'DeSean Jackson', 'Phi', 'WR'], [u'BEGGING FOR A PEGGING', 'WR', 'Dez Bryant', 'Dal', 'WR'], [u'BEGGING FOR A PEGGING', 'WR', 'Victor Cruz', 'NYG', 'WR'], [u'BEGGING FOR A PEGGING', 'TE', 'Julius Thomas', 'Den', 'TE'], [u'BEGGING FOR A PEGGING', 'D/ST', 'Colts', 'D'], [u'BEGGING FOR A PEGGING', 'K', 'Steven Hauschka', 'Sea', 'K'], [u'BEGGING FOR A PEGGING', 'Bench', 'Alfred Morris', 'Wsh', 'RB'], [u'BEGGING FOR A PEGGING', 'Bench', 'Stevan Ridley', 'NE', 'RB'], [u'BEGGING FOR A PEGGING', 'Bench', 'Tony Gonzalez', 'Atl', 'TE'], [u'BEGGING FOR A PEGGING', 'Bench', 'Ahmad Bradshaw*', 'Ind', 'RB'], [u'BEGGING FOR A PEGGING', 'Bench', 'Julian Edelman', 'NE', 'WR'], [u'BEGGING FOR A PEGGING', 'Bench', 'Eddie Royal', 'SD', 'WR'], [u\"SIXT-NINE'IN AND PREGNANT\", 'QB', 'Matthew Stafford', 'Det', 'QB'], [u\"SIXT-NINE'IN AND PREGNANT\", 'RB', 'Adrian Peterson', 'Min', 'RB'], [u\"SIXT-NINE'IN AND PREGNANT\", 'RB', 'LeSean McCoy', 'Phi', 'RB'], [u\"SIXT-NINE'IN AND PREGNANT\", 'RB/WR', 'Fred Jackson', 'Buf', 'RB'], [u\"SIXT-NINE'IN AND PREGNANT\", 'WR', 'Vincent Jackson', 'TB', 'WR'], [u\"SIXT-NINE'IN AND PREGNANT\", 'WR', 'Larry Fitzgerald', 'Ari', 'WR'], [u\"SIXT-NINE'IN AND PREGNANT\", 'TE', 'Martellus Bennett', 'Chi', 'TE'], [u\"SIXT-NINE'IN AND PREGNANT\", 'D/ST', 'Chiefs', 'D'], [u\"SIXT-NINE'IN AND PREGNANT\", 'K', 'Stephen Gostkowski', 'NE', 'K'], [u\"SIXT-NINE'IN AND PREGNANT\", 'Bench', 'C.J. Spiller', 'Buf', 'RB'], [u\"SIXT-NINE'IN AND PREGNANT\", 'Bench', 'Rob Gronkowski', 'NE', 'TE'], [u\"SIXT-NINE'IN AND PREGNANT\", 'Bench', 'Michael Vick', 'Phi', 'QB'], [u\"SIXT-NINE'IN AND PREGNANT\", 'Bench', 'Matt Prater', 'Den', 'K'], [u\"SIXT-NINE'IN AND PREGNANT\", 'Bench', 'Brian Hartline', 'Mia', 'WR'], [u\"SIXT-NINE'IN AND PREGNANT\", 'Bench', 'Nate Washington', 'Ten', 'WR'], [u'DEEP INSIDE OF YOU', 'QB', 'Jay Cutler', 'Chi', 'QB'], [u'DEEP INSIDE OF YOU', 'RB', 'Marshawn Lynch', 'Sea', 'RB'], [u'DEEP INSIDE OF YOU', 'RB', \"Le'Veon Bell\", 'Pit', 'RB'], [u'DEEP INSIDE OF YOU', 'RB/WR', 'Hakeem Nicks', 'NYG', 'WR'], [u'DEEP INSIDE OF YOU', 'WR', 'A.J. Green', 'Cin', 'WR'], [u'DEEP INSIDE OF YOU', 'WR', 'Rueben Randle', 'NYG', 'WR'], [u'DEEP INSIDE OF YOU', 'TE', 'Charles Clay', 'Mia', 'TE'], [u'DEEP INSIDE OF YOU', 'D/ST', 'Browns', 'D'], [u'DEEP INSIDE OF YOU', 'K', 'Alex Henery', 'Phi', 'K'], [u'DEEP INSIDE OF YOU', 'Bench', 'David Wilson*', 'NYG', 'RB'], [u'DEEP INSIDE OF YOU', 'Bench', 'Mike Wallace', 'Mia', 'WR'], [u'DEEP INSIDE OF YOU', 'Bench', 'Daryl Richardson', 'StL', 'RB'], [u'DEEP INSIDE OF YOU', 'Bench', 'Brandon Myers', 'NYG', 'TE'], [u'DEEP INSIDE OF YOU', 'Bench', 'Matt Schaub', 'Hou', 'QB'], [u'DEEP INSIDE OF YOU', 'Bench', 'Marlon Brown', 'Bal', 'WR'], [u'SECTION V DEVIANTS', 'QB', 'Matt Ryan', 'Atl', 'QB'], [u'SECTION V DEVIANTS', 'RB', 'DeAngelo Williams', 'Car', 'RB'], [u'SECTION V DEVIANTS', 'RB', 'Jacquizz Rodgers', 'Atl', 'RB'], [u'SECTION V DEVIANTS', 'RB/WR', 'Anquan Boldin', 'SF', 'WR'], [u'SECTION V DEVIANTS', 'WR', 'Wes Welker', 'Den', 'WR'], [u'SECTION V DEVIANTS', 'WR', 'Danny Amendola', 'NE', 'WR'], [u'SECTION V DEVIANTS', 'TE', 'Heath Miller', 'Pit', 'TE'], [u'SECTION V DEVIANTS', 'D/ST', 'Bengals', 'D'], [u'SECTION V DEVIANTS', 'K', 'Matt Bryant', 'Atl', 'K'], [u'SECTION V DEVIANTS', 'Bench', 'Tom Brady', 'NE', 'QB'], [u'SECTION V DEVIANTS', 'Bench', 'Steven Jackson*', 'Atl', 'RB'], [u'SECTION V DEVIANTS', 'Bench', 'Ted Ginn', 'Car', 'WR'], [u'SECTION V DEVIANTS', 'Bench', 'Robert Meachem', 'NO', 'WR'], [u'SECTION V DEVIANTS', 'Bench', 'Kenbrell Thompkins', 'NE', 'WR'], [u'SECTION V DEVIANTS', 'Bench', 'Jason Snelling', 'Atl', 'RB'], [u\"OJ'S SLASHERS AND DASHERS\", 'QB', 'Andrew Luck', 'Ind', 'QB'], [u\"OJ'S SLASHERS AND DASHERS\", 'RB', 'Eddie Lacy', 'GB', 'RB'], [u\"OJ'S SLASHERS AND DASHERS\", 'RB', 'Knowshon Moreno', 'Den', 'RB'], [u\"OJ'S SLASHERS AND DASHERS\", 'RB/WR', 'Trent Richardson', 'Ind', 'RB'], [u\"OJ'S SLASHERS AND DASHERS\", 'WR', 'Brandon Marshall', 'Chi', 'WR'], [u\"OJ'S SLASHERS AND DASHERS\", 'WR', 'Jordy Nelson', 'GB', 'WR'], [u\"OJ'S SLASHERS AND DASHERS\", 'TE', 'Greg Olsen', 'Car', 'TE'], [u\"OJ'S SLASHERS AND DASHERS\", 'D/ST', 'Broncos', 'D'], [u\"OJ'S SLASHERS AND DASHERS\", 'K', 'Garrett Hartley', 'NO', 'K'], [u\"OJ'S SLASHERS AND DASHERS\", 'Bench', 'Eric Decker', 'Den', 'WR'], [u\"OJ'S SLASHERS AND DASHERS\", 'Bench', 'Ben Tate', 'Hou', 'RB'], [u\"OJ'S SLASHERS AND DASHERS\", 'Bench', 'T.Y. Hilton', 'Ind', 'WR'], [u\"OJ'S SLASHERS AND DASHERS\", 'Bench', 'Quinton Patton*', 'SF', 'WR'], [u\"OJ'S SLASHERS AND DASHERS\", 'Bench', 'Joique Bell', 'Det', 'RB'], [u\"OJ'S SLASHERS AND DASHERS\", 'Bench', 'Scott Chandler', 'Buf', 'TE'], [u'TEAM HEIM', 'QB', 'Drew Brees', 'NO', 'QB'], [u'TEAM HEIM', 'RB', 'Jamaal Charles', 'KC', 'RB'], [u'TEAM HEIM', 'RB', 'Danny Woodhead', 'SD', 'RB'], [u'TEAM HEIM', 'RB/WR', 'Darren Sproles', 'NO', 'RB'], [u'TEAM HEIM', 'WR', 'Julio Jones', 'Atl', 'WR'], [u'TEAM HEIM', 'WR', 'Torrey Smith', 'Bal', 'WR'], [u'TEAM HEIM', 'TE', 'Jared Cook', 'StL', 'TE'], [u'TEAM HEIM', 'D/ST', 'Bears', 'D'], [u'TEAM HEIM', 'K', 'Dan Bailey', 'Dal', 'K'], [u'TEAM HEIM', 'Bench', 'Vernon Davis', 'SF', 'TE'], [u'TEAM HEIM', 'Bench', 'Chris Johnson', 'Ten', 'RB'], [u'TEAM HEIM', 'Bench', 'Eli Manning', 'NYG', 'QB'], [u'TEAM HEIM', 'Bench', 'Michael Floyd', 'Ari', 'WR'], [u'TEAM HEIM', 'Bench', 'Michael Bush', 'Chi', 'RB'], [u'TEAM HEIM', 'Bench', 'James Jones', 'GB', 'WR'], [u'JOKER ZOMBIES RULE', 'QB', 'Tony Romo', 'Dal', 'QB'], [u'JOKER ZOMBIES RULE', 'RB', 'Matt Forte', 'Chi', 'RB'], [u'JOKER ZOMBIES RULE', 'RB', 'DeMarco Murray', 'Dal', 'RB'], [u'JOKER ZOMBIES RULE', 'RB/WR', 'Reggie Bush', 'Det', 'RB'], [u'JOKER ZOMBIES RULE', 'WR', 'Calvin Johnson', 'Det', 'WR'], [u'JOKER ZOMBIES RULE', 'WR', 'Josh Gordon', 'Cle', 'WR'], [u'JOKER ZOMBIES RULE', 'TE', 'Jimmy Graham', 'NO', 'TE'], [u'JOKER ZOMBIES RULE', 'D/ST', '49ers', 'D'], [u'JOKER ZOMBIES RULE', 'K', 'Phil Dawson', 'SF', 'K'], [u'JOKER ZOMBIES RULE', 'Bench', 'Cam Newton', 'Car', 'QB'], [u'JOKER ZOMBIES RULE', 'Bench', 'Darren McFadden', 'Oak', 'RB'], [u'JOKER ZOMBIES RULE', 'Bench', 'Cecil Shorts', 'Jac', 'WR'], [u'JOKER ZOMBIES RULE', 'Bench', 'Jordan Cameron', 'Cle', 'TE'], [u'JOKER ZOMBIES RULE', 'Bench', 'Giovani Bernard', 'Cin', 'RB'], [u'JOKER ZOMBIES RULE', 'Bench', 'Philip Rivers', 'SD', 'QB'], [u'TITTY CITY TOBLERONES', 'QB', 'Peyton Manning', 'Den', 'QB'], [u'TITTY CITY TOBLERONES', 'RB', 'Frank Gore', 'SF', 'RB'], [u'TITTY CITY TOBLERONES', 'RB', 'Bernard Pierce', 'Bal', 'RB'], [u'TITTY CITY TOBLERONES', 'RB/WR', 'BenJarvus Green-Ellis', 'Cin', 'RB'], [u'TITTY CITY TOBLERONES', 'WR', 'Randall Cobb', 'GB', 'WR'], [u'TITTY CITY TOBLERONES', 'WR', 'Denarius Moore', 'Oak', 'WR'], [u'TITTY CITY TOBLERONES', 'TE', 'Antonio Gates', 'SD', 'TE'], [u'TITTY CITY TOBLERONES', 'D/ST', 'Rams', 'D'], [u'TITTY CITY TOBLERONES', 'K', 'Blair Walsh', 'Min', 'K'], [u'TITTY CITY TOBLERONES', 'Bench', 'Maurice Jones-Drew', 'Jac', 'RB'], [u'TITTY CITY TOBLERONES', 'Bench', 'Steve Smith', 'Car', 'WR'], [u'TITTY CITY TOBLERONES', 'Bench', 'Pierre Garcon', 'Wsh', 'WR'], [u'TITTY CITY TOBLERONES', 'Bench', 'Jermichael Finley', 'GB', 'TE'], [u'TITTY CITY TOBLERONES', 'Bench', 'LaMichael James', 'SF', 'RB'], [u'TITTY CITY TOBLERONES', 'Bench', 'Ryan Succop', 'KC', 'K'], [u'STUPID SEXY FLANDERS', 'QB', 'Russell Wilson', 'Sea', 'QB'], [u'STUPID SEXY FLANDERS', 'RB', 'Doug Martin', 'TB', 'RB'], [u'STUPID SEXY FLANDERS', 'RB', 'Isaiah Pead', 'StL', 'RB'], [u'STUPID SEXY FLANDERS', 'RB/WR', 'Golden Tate', 'Sea', 'WR'], [u'STUPID SEXY FLANDERS', 'WR', 'Andre Johnson', 'Hou', 'WR'], [u'STUPID SEXY FLANDERS', 'WR', 'Dwayne Bowe', 'KC', 'WR'], [u'STUPID SEXY FLANDERS', 'TE', 'Jason Witten', 'Dal', 'TE'], [u'STUPID SEXY FLANDERS', 'D/ST', 'Seahawks', 'D'], [u'STUPID SEXY FLANDERS', 'K', 'Greg Zuerlein', 'StL', 'K'], [u'STUPID SEXY FLANDERS', 'Bench', 'Colin Kaepernick', 'SF', 'QB'], [u'STUPID SEXY FLANDERS', 'Bench', 'Percy Harvin*', 'Sea', 'WR'], [u'STUPID SEXY FLANDERS', 'Bench', 'Lamar Miller', 'Mia', 'RB'], [u'STUPID SEXY FLANDERS', 'Bench', 'Ben Roethlisberger', 'Pit', 'QB'], [u'STUPID SEXY FLANDERS', 'Bench', 'Montee Ball', 'Den', 'RB'], [u'STUPID SEXY FLANDERS', 'Bench', 'Jermaine Gresham', 'Cin', 'TE']]\n"
}
],
"prompt_number": 271
},
{
"cell_type": "code",
"collapsed": false,
"input": "import pandas as pd\nimport html5lib\npd.io.html.read_html('http://games.espn.go.com/ffl/leaguerosters?leagueId=280610','.+',None)",
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 7,
"text": "[ 0 1 2\n0 SECTION V DEVIANTS (3-2) None None\n1 SLOT PLAYER, TEAM POS ACQ\n2 QB Matt Ryan, Atl\u00a0QB Draft\n3 RB DeAngelo Williams, Car\u00a0RB Draft\n4 RB Jacquizz Rodgers, Atl\u00a0RB Free Agency\n5 RB/WR Anquan Boldin, SF\u00a0WR Draft\n6 WR Wes Welker, Den\u00a0WR Draft\n7 WR Danny Amendola, NE\u00a0WR\u00a0\u00a0P Draft\n8 TE Heath Miller, Pit\u00a0TE Free Agency\n9 D/ST Bengals D/ST\u00a0D/ST Draft\n10 K Matt Bryant, Atl\u00a0K Draft\n11 Bench Tom Brady, NE\u00a0QB Draft\n12 Bench Steven Jackson*, Atl\u00a0RB\u00a0\u00a0O Draft\n13 Bench Ted Ginn, Car\u00a0WR Draft\n14 Bench Robert Meachem, NO\u00a0WR Free Agency\n15 Bench Kenbrell Thompkins, NE\u00a0WR Free Agency\n16 Bench Jason Snelling, Atl\u00a0RB\u00a0\u00a0Q Free Agency,\n 0 1 2\n0 FUCK JOKER ZOMBIES (2-3) None None\n1 SLOT PLAYER, TEAM POS ACQ\n2 QB Robert Griffin III, Wsh\u00a0QB Draft\n3 RB Arian Foster, Hou\u00a0RB Draft\n4 RB Ray Rice, Bal\u00a0RB Draft\n5 RB/WR Marques Colston, NO\u00a0WR Draft\n6 WR Demaryius Thomas, Den\u00a0WR Draft\n7 WR Reggie Wayne, Ind\u00a0WR Draft\n8 TE Owen Daniels*, Hou\u00a0TE\u00a0\u00a0O Draft\n9 D/ST Texans D/ST\u00a0D/ST Free Agency\n10 K Randy Bullock, Hou\u00a0K Draft\n11 Bench Antonio Brown, Pit\u00a0WR Draft\n12 Bench Steve Johnson, Buf\u00a0WR Draft\n13 Bench Rashard Mendenhall, Ari\u00a0RB Draft\n14 Bench Sam Bradford, StL\u00a0QB Draft\n15 Bench Bilal Powell, NYJ\u00a0RB Free Agency\n16 Bench Coby Fleener, Ind\u00a0TE Free Agency,\n 0 1 2\n0 OJ'S SLASHERS AND DASHERS (5-0) None None\n1 SLOT PLAYER, TEAM POS ACQ\n2 QB Andrew Luck, Ind\u00a0QB Draft\n3 RB Eddie Lacy, GB\u00a0RB Draft\n4 RB Knowshon Moreno, Den\u00a0RB Draft\n5 RB/WR Trent Richardson, Ind\u00a0RB Draft\n6 WR Brandon Marshall, Chi\u00a0WR Draft\n7 WR Jordy Nelson, GB\u00a0WR Draft\n8 TE Greg Olsen, Car\u00a0TE\u00a0\u00a0Q Draft\n9 D/ST Broncos D/ST\u00a0D/ST Draft\n10 K Garrett Hartley, NO\u00a0K Draft\n11 Bench Eric Decker, Den\u00a0WR Draft\n12 Bench Ben Tate, Hou\u00a0RB Draft\n13 Bench T.Y. Hilton, Ind\u00a0WR Draft\n14 Bench Quinton Patton*, SF\u00a0WR\u00a0\u00a0O Draft\n15 Bench Joique Bell, Det\u00a0RB Free Agency\n16 Bench Scott Chandler, Buf\u00a0TE Free Agency,\n 0 1 2\n0 DEEP INSIDE OF YOU (0-5) None None\n1 SLOT PLAYER, TEAM POS ACQ\n2 QB Jay Cutler, Chi\u00a0QB Draft\n3 RB Marshawn Lynch, Sea\u00a0RB Draft\n4 RB Le'Veon Bell, Pit\u00a0RB Free Agency\n5 RB/WR Hakeem Nicks, NYG\u00a0WR Draft\n6 WR A.J. Green, Cin\u00a0WR Draft\n7 WR Rueben Randle, NYG\u00a0WR Free Agency\n8 TE Charles Clay, Mia\u00a0TE Free Agency\n9 D/ST Browns D/ST\u00a0D/ST Free Agency\n10 K Alex Henery, Phi\u00a0K Free Agency\n11 Bench Mike Wallace, Mia\u00a0WR Draft\n12 Bench Daryl Richardson, StL\u00a0RB Draft\n13 Bench Brandon Myers, NYG\u00a0TE\u00a0\u00a0Q Free Agency\n14 Bench Matt Schaub, Hou\u00a0QB Free Agency\n15 Bench Marlon Brown, Bal\u00a0WR\u00a0\u00a0Q Free Agency\n16 Bench Alshon Jeffery, Chi\u00a0WR\u00a0\u00a0Q Free Agency,\n 0 1 2\n0 TEAM HEIM (3-2) None None\n1 SLOT PLAYER, TEAM POS ACQ\n2 QB Drew Brees, NO\u00a0QB Draft\n3 RB Jamaal Charles, KC\u00a0RB\u00a0\u00a0P Draft\n4 RB Danny Woodhead, SD\u00a0RB Draft\n5 RB/WR Darren Sproles, NO\u00a0RB Draft\n6 WR Julio Jones, Atl\u00a0WR\u00a0\u00a0Q Draft\n7 WR Torrey Smith, Bal\u00a0WR Draft\n8 TE Jared Cook, StL\u00a0TE Draft\n9 D/ST Bears D/ST\u00a0D/ST Draft\n10 K Dan Bailey, Dal\u00a0K Draft\n11 Bench Vernon Davis, SF\u00a0TE\u00a0\u00a0P Draft\n12 Bench Chris Johnson, Ten\u00a0RB Draft\n13 Bench Eli Manning, NYG\u00a0QB Draft\n14 Bench Michael Floyd, Ari\u00a0WR Draft\n15 Bench Michael Bush, Chi\u00a0RB Draft\n16 Bench James Jones, GB\u00a0WR Free Agency,\n 0 1 2\n0 JOKER ZOMBIES RULE (3-2) None None\n1 SLOT PLAYER, TEAM POS ACQ\n2 QB Tony Romo, Dal\u00a0QB Draft\n3 RB Matt Forte, Chi\u00a0RB Draft\n4 RB DeMarco Murray, Dal\u00a0RB Draft\n5 RB/WR Reggie Bush, Det\u00a0RB Draft\n6 WR Calvin Johnson, Det\u00a0WR\u00a0\u00a0Q Draft\n7 WR Josh Gordon, Cle\u00a0WR Draft\n8 TE Jimmy Graham, NO\u00a0TE Draft\n9 D/ST 49ers D/ST\u00a0D/ST Draft\n10 K Phil Dawson, SF\u00a0K Draft\n11 Bench Cam Newton, Car\u00a0QB Draft\n12 Bench Darren McFadden, Oak\u00a0RB\u00a0\u00a0Q Draft\n13 Bench Cecil Shorts, Jac\u00a0WR Draft\n14 Bench Jordan Cameron, Cle\u00a0TE Draft\n15 Bench Giovani Bernard, Cin\u00a0RB Draft\n16 Bench Philip Rivers, SD\u00a0QB Free Agency,\n 0 1 2\n0 TITTY CITY TOBLERONES (3-2) None None\n1 SLOT PLAYER, TEAM POS ACQ\n2 QB Peyton Manning, Den\u00a0QB Draft\n3 RB Frank Gore, SF\u00a0RB Draft\n4 RB Bernard Pierce, Bal\u00a0RB Draft\n5 RB/WR BenJarvus Green-Ellis, Cin\u00a0RB Free Agency\n6 WR Randall Cobb, GB\u00a0WR Draft\n7 WR Denarius Moore, Oak\u00a0WR Free Agency\n8 TE Antonio Gates, SD\u00a0TE Free Agency\n9 D/ST Rams D/ST\u00a0D/ST Draft\n10 K Blair Walsh, Min\u00a0K Draft\n11 Bench Maurice Jones-Drew, Jac\u00a0RB Draft\n12 Bench Steve Smith, Car\u00a0WR Draft\n13 Bench Pierre Garcon, Wsh\u00a0WR Draft\n14 Bench Jermichael Finley, GB\u00a0TE Draft\n15 Bench Alex Smith, KC\u00a0QB Free Agency\n16 Bench Cardinals D/ST\u00a0D/ST Free Agency,\n <class 'pandas.core.frame.DataFrame'>\nInt64Index: 175 entries, 0 to 174\nColumns: 501 entries, 0 to 500\ndtypes: object(501),\n 0 1 2\n0 BEGGING FOR A PEGGING (3-2) None None\n1 SLOT PLAYER, TEAM POS ACQ\n2 QB Aaron Rodgers, GB\u00a0QB Draft\n3 RB Johnathan Franklin, GB\u00a0RB Free Agency\n4 RB LeGarrette Blount, NE\u00a0RB Free Agency\n5 RB/WR DeSean Jackson, Phi\u00a0WR Draft\n6 WR Dez Bryant, Dal\u00a0WR Draft\n7 WR Victor Cruz, NYG\u00a0WR Draft\n8 TE Julius Thomas, Den\u00a0TE Draft\n9 D/ST Colts D/ST\u00a0D/ST Free Agency\n10 K Steven Hauschka, Sea\u00a0K Free Agency\n11 Bench Alfred Morris, Wsh\u00a0RB\u00a0\u00a0Q Draft\n12 Bench Tony Gonzalez, Atl\u00a0TE Draft\n13 Bench Julian Edelman, NE\u00a0WR Free Agency\n14 Bench Eddie Royal, SD\u00a0WR Free Agency\n15 Bench Willis McGahee, Cle\u00a0RB Free Agency\n16 Bench Zac Stacy, StL\u00a0RB\u00a0\u00a0P Free Agency,\n 0 1 2\n0 SIXT-NINE'IN AND PREGNANT (2-3) None None\n1 SLOT PLAYER, TEAM POS ACQ\n2 QB Matthew Stafford, Det\u00a0QB Draft\n3 RB Adrian Peterson, Min\u00a0RB Draft\n4 RB LeSean McCoy, Phi\u00a0RB Draft\n5 RB/WR Fred Jackson, Buf\u00a0RB Draft\n6 WR Vincent Jackson, TB\u00a0WR Draft\n7 WR Larry Fitzgerald, Ari\u00a0WR Draft\n8 TE Martellus Bennett, Chi\u00a0TE\u00a0\u00a0Q Free Agency\n9 D/ST Chiefs D/ST\u00a0D/ST Free Agency\n10 K Stephen Gostkowski, NE\u00a0K Draft\n11 Bench C.J. Spiller, Buf\u00a0RB\u00a0\u00a0P Draft\n12 Bench Rob Gronkowski, NE\u00a0TE\u00a0\u00a0Q Draft\n13 Bench Michael Vick, Phi\u00a0QB\u00a0\u00a0Q Draft\n14 Bench Matt Prater, Den\u00a0K Draft\n15 Bench Brian Hartline, Mia\u00a0WR Free Agency\n16 Bench Terrance Williams, Dal\u00a0WR Free Agency,\n 0 1 2\n0 STUPID SEXY FLANDERS (1-4) None None\n1 SLOT PLAYER, TEAM POS ACQ\n2 QB Russell Wilson, Sea\u00a0QB Draft\n3 RB Doug Martin, TB\u00a0RB Draft\n4 RB Isaiah Pead, StL\u00a0RB Free Agency\n5 RB/WR Golden Tate, Sea\u00a0WR Draft\n6 WR Andre Johnson, Hou\u00a0WR Draft\n7 WR Dwayne Bowe, KC\u00a0WR Draft\n8 TE Jason Witten, Dal\u00a0TE Draft\n9 D/ST Seahawks D/ST\u00a0D/ST Draft\n10 K Greg Zuerlein, StL\u00a0K Draft\n11 Bench Colin Kaepernick, SF\u00a0QB Draft\n12 Bench Percy Harvin*, Sea\u00a0WR\u00a0\u00a0O Draft\n13 Bench Lamar Miller, Mia\u00a0RB Draft\n14 Bench Ben Roethlisberger, Pit\u00a0QB\u00a0\u00a0P Draft\n15 Bench Montee Ball, Den\u00a0RB Draft\n16 Bench Jermaine Gresham, Cin\u00a0TE Draft]"
}
],
"prompt_number": 7
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment