Esempio n. 1
0
    def scrape_crowd(self):
        """Returns the crowd figure as found in the supplied BeautifulSoup4
        rlproject match page data object as an int.
        """

        raw_crowd = self._match_details_as_dict()['crowd']

        crowd = int(strip_non_numeric(raw_crowd))

        return crowd
Esempio n. 2
0
    def scrape_crowd(self):
        """Returns the crowd figure as found in the supplied BeautifulSoup4
        afltables match page data object as an int.
        """

        match_details = self._match_details_as_dict()
        crowd = match_details['crowd']

        crowd = strip_non_numeric(crowd)
        try:
            crowd = int(crowd)
        except ValueError:
            raise DataError('Could not convert crowd {} to int'.format(crowd))

        return crowd