diff --git a/recipes/financial_times.recipe b/recipes/financial_times.recipe index 20e68683e0..62384d6aed 100644 --- a/recipes/financial_times.recipe +++ b/recipes/financial_times.recipe @@ -146,6 +146,9 @@ class ft(BasicNewsRecipe): return html def preprocess_html(self, soup): + p = soup.find(**classes('o-topper__standfirst')) + if p: + p.name = 'p' for table in soup.findAll('table'): if len(table.find('tbody').findAll('tr')) > 20: table.find('tbody').decompose() diff --git a/recipes/mit_technology_review.recipe b/recipes/mit_technology_review.recipe index 709962c0ba..08bbd0b9fc 100644 --- a/recipes/mit_technology_review.recipe +++ b/recipes/mit_technology_review.recipe @@ -76,7 +76,9 @@ class MitTechnologyReview(BasicNewsRecipe): soup = self.index_to_soup(self.INDEX) issue = soup.find(attrs={'class':lambda x: x and x.startswith('magazineHero__title')}) time = soup.find(attrs={'class': lambda x: x and x.startswith('magazineHero__date')}) + desc = soup.find(attrs={'class': lambda x: x and x.startswith('magazineHero__description')}) self.title = 'MIT Tech Review ' + self.tag_to_string(issue) + self.description = self.tag_to_string(desc) self.timefmt = ' [' + self.tag_to_string(time) + ']' self.log('Downloading issue: ', self.timefmt)