From 4d3d69ccd10ec1db1b7b16a19ceda17afec4426d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 1 Jul 2020 21:40:28 +0530 Subject: [PATCH] ... --- recipes/popscience.recipe | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/recipes/popscience.recipe b/recipes/popscience.recipe index 29a0eeeb16..b7de4ccb51 100644 --- a/recipes/popscience.recipe +++ b/recipes/popscience.recipe @@ -18,8 +18,6 @@ class AdvancedUserRecipe1282101454(BasicNewsRecipe): description = 'Popular Science' publisher = 'Popular Science' max_articles_per_feed = 100 - no_stylesheets = True - remove_empty_feeds = True ignore_duplicate_articles = {'url'} def parse_index(self): @@ -33,7 +31,7 @@ class AdvancedUserRecipe1282101454(BasicNewsRecipe): author = item.find('dc:creator', {'dc': 'http://purl.org/dc/elements/1.1/'}).text section = item.find('category').text content = item.find('content:encoded', {'content': 'http://purl.org/rss/1.0/modules/content/'}).text - content = '

{title}

{desc}

{author}

{content}
'.format( + content = '

{title}

{desc}

{author}

{content}
'.format( title=title, author=author, desc=desc, content=content) desc += ' by ' + author with PersistentTemporaryFile('popsci.html') as pt: