From d5ed4847037ad4859b2379e954842122930a8ca2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 Nov 2024 20:28:02 +0530 Subject: [PATCH] ... --- recipes/ars_technica.recipe | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/recipes/ars_technica.recipe b/recipes/ars_technica.recipe index 9ab1bbaba0..4bb148073d 100644 --- a/recipes/ars_technica.recipe +++ b/recipes/ars_technica.recipe @@ -56,19 +56,22 @@ class ArsTechnica(BasicNewsRecipe): self.oldest_article = float(d) keep_only_tags = [ - dict(itemprop=['headline', 'description']), - classes('post-meta article-guts standalone'), + dict(itemprop=['article-header', 'article-body']), + classes('main post-meta article-guts standalone'), ] remove_tags = [ - classes('site-header video corner-info article-expander left-column related-stories'), + classes('xf_thread_iframe_wrapper topnav-sections nav-previous nav-next ars-gallery-caption-credit' + ' ars-gallery-caption-text ars-gallery-caption-arrow font-impact sr-only author-mini-bio' + ' taboola-container comments site-header site-footer video corner-info article-expander' + ' left-column related-stories article-social text-settings-dropdown-story intro-image'), dict(name=['object', 'link', 'embed', 'iframe', 'meta']), dict(id=['social-left', 'article-footer-wrap']), dict(name='nav', attrs={'class': 'subheading'}), ] remove_attributes = ['lang', 'style'] - # Feed are found here: http://arstechnica.com/rss-feeds/ + # Feed are found here: [url]http://arstechnica.com/rss-feeds/[/url] feeds = [ ('Ars Technica', 'https://arstechnica.com/feed/'), ('Features', 'https://arstechnica.com/feautes/feed/'),