def parse_file(self, file, encoding, _data): for art_dict in self._scrape_unit(_read(file, encoding)): yield Article.fromdict(self.map_article(art_dict))
def parse_file(self, file, _): for art_dict in self._scrape_unit(file.read()): yield Article.fromdict(self.map_article(art_dict, DEFAULTS))
def parse_file(self, file): text = self.textio(file, self.options['encoding']) for art_dict in self._scrape_unit(text.read()): yield Article.fromdict(self.map_article(art_dict))