def __init__(self, output_directory): """ Initializes a NflScraper object. Args: output_directory (str): The directory path of where downloaded pages should be stored. """ ensure_directory(output_directory) super(NflScraper, self).__init__() self.output_directory = output_directory self.build_opener(urllib2.HTTPSHandler(debuglevel=1))
def __init__(self, data_directory, output_directory): """Initializes a NflParser object. Args: data_directory (str): Path to a directory containing downloaded stat pages. output_directory(str): Path to a directory where parsed content will be saved. """ ensure_directory(output_directory) self.data_directory = data_directory self.output_directory = output_directory