Skip to content

Instantly share code, notes, and snippets.

@ZachOrr
Created June 11, 2013 16:53
Show Gist options
  • Save ZachOrr/5758554 to your computer and use it in GitHub Desktop.
Save ZachOrr/5758554 to your computer and use it in GitHub Desktop.
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