diff --git a/recipes/newslaundry.recipe b/recipes/newslaundry.recipe index 7b105a59ce..9873b60157 100644 --- a/recipes/newslaundry.recipe +++ b/recipes/newslaundry.recipe @@ -1,4 +1,4 @@ -from calibre.web.feeds.news import BasicNewsRecipe, classes +from calibre.web.feeds.news import BasicNewsRecipe class newslaundry(BasicNewsRecipe): title = 'Newslaundry' @@ -32,5 +32,6 @@ class newslaundry(BasicNewsRecipe): # return soup def print_version(self, url): - if 'hindi.newslaundry' in url: self.abort_article('Skipping hindi article') # remove this line if you want hindi articles. + if 'hindi.newslaundry' in url: + self.abort_article('Skipping hindi article') # remove this line if you want hindi articles. return url diff --git a/recipes/project_syndicate.recipe b/recipes/project_syndicate.recipe index 5091865961..fdf3289965 100644 --- a/recipes/project_syndicate.recipe +++ b/recipes/project_syndicate.recipe @@ -1,4 +1,4 @@ -from calibre.web.feeds.news import BasicNewsRecipe, classes +from calibre.web.feeds.news import BasicNewsRecipe from calibre.scraper.simple import read_url from calibre.ptempfile import PersistentTemporaryFile @@ -41,7 +41,7 @@ class projectsynd(BasicNewsRecipe): dict(attrs={'itemprop':lambda x: x and 'associatedMedia' in x.split()}), dict(attrs={'itemprop':['headline', 'datePublished', 'author', 'abstract', 'articleBody']}), ] - + remove_tags = [ dict(name=['button', 'svg']), dict(attrs={'data-message-area':True}),