def compute_journee(self, journee): # Get All Match into journee matches = journee[0].findAll('table', {'class': 'res even'}) for event in matches: match = Match() match.compute_match(event) self.matches.append(match) matchesImpair = journee[0].findAll('table', {'class': 'res '}) for event2 in matchesImpair: match = Match() match.compute_match(event2) self.matches.append(match)