Created
June 11, 2013 16:53
-
-
Save ZachOrr/5758554 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
import mechanize | |
def get_sponsors(team_number): | |
br = mechanize.Browser() | |
br.open("http://frclinks.com/t/" + str(team_number)) | |
return BeautifulSoup(br.response().read()).find_all("div", {"class":"team-name"})[0].get_text() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment