From 743a9690bb3648a5b3bc0492d97ea9e7888f9648 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 19 Oct 2023 20:20:54 +0530 Subject: [PATCH] pep8 --- recipes/newslaundry.recipe | 5 +++-- recipes/project_syndicate.recipe | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) 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}),