Skip to content

Instantly share code, notes, and snippets.

@robwiss
Forked from JohnPaulR/ESPN Roster Grab
Last active December 25, 2015 02:29
Show Gist options
  • Save robwiss/6902679 to your computer and use it in GitHub Desktop.
Save robwiss/6902679 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from bs4 import BeautifulSoup
from urllib2 import urlopen
soup = BeautifulSoup(urlopen('http://games.espn.go.com/ffl/leaguerosters?leagueId=280610'))
playerTables = soup.findAll('table', attrs={ 'class' : 'playerTableTable' })
playerTable = playerTables[0]
team_row = playerTable.find('tr', attrs={ 'class' : 'playerTableBgRowHead' })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment