def getScore(match): page = urllib.urlopen("http://isburning.me/srobomatches/%s.txt" % match) for line in page.readlines(): team, string = line.strip().split(" ") score = parser.fsm(string) yield (team, score, string)
def getActualResult(string): return parser.fsm(string)