示例#1
0
    def _get_championship_matches_info(self, url):
        soup = self._get_soup(url)
        matches = []
        bks = self._get_bks(soup)

        for bk in bks:
            match_title = ParimatchScraper._get_match_title(bk)
            date_time_str = ParimatchScraper._get_match_date_time_str(bk)
            date_time = DateTime.from_parimatch_str(date_time_str)
            match = Match(match_title, url, date_time, self)
            match.id = bk.find(class_='no').text
            matches.append(match)

        return matches