From 25f96bd1986d376baeee835d50bbd0f2d28ab576 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 12 Jan 2014 11:11:00 +0530 Subject: [PATCH] ... --- recipes/nytimes.recipe | 5 ++++- recipes/nytimes_sub.recipe | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/recipes/nytimes.recipe b/recipes/nytimes.recipe index 051d40b7b4..cfdfc35236 100644 --- a/recipes/nytimes.recipe +++ b/recipes/nytimes.recipe @@ -222,6 +222,7 @@ class NYTimes(BasicNewsRecipe): re.compile('commentCount'), 'credit' ]}), + dict(attrs={'class':lambda x: x and 'related-coverage-marginalia' in x.split()}), dict(name='div', attrs={'class':re.compile('toolsList')}), # bits dict(name='div', attrs={'class':re.compile('postNavigation')}), # bits dict(name='div', attrs={'class':'tweet'}), @@ -235,6 +236,8 @@ class NYTimes(BasicNewsRecipe): dict(id=[ 'adxLeaderboard', 'adxSponLink', + 'anchoredAd_module', + 'anchoredAd_spot', 'archive', 'articleExtras', 'articleInline', @@ -268,7 +271,7 @@ class NYTimes(BasicNewsRecipe): 'related-content', #added for DealBook 'whats-next', ]), - dict(name=['script', 'noscript', 'style','form','hr', 'button'])] + dict(name=['script', 'noscript', 'style','form','hr', 'button', 'meta'])] no_stylesheets = True extra_css = ''' .articleHeadline { text-align: left; margin-top:0.5em; margin-bottom:0.25em; } diff --git a/recipes/nytimes_sub.recipe b/recipes/nytimes_sub.recipe index 4527fb544e..94c03bd98b 100644 --- a/recipes/nytimes_sub.recipe +++ b/recipes/nytimes_sub.recipe @@ -222,6 +222,7 @@ class NYTimes(BasicNewsRecipe): re.compile('commentCount'), 'credit' ]}), + dict(attrs={'class':lambda x: x and 'related-coverage-marginalia' in x.split()}), dict(name='div', attrs={'class':re.compile('toolsList')}), # bits dict(name='div', attrs={'class':re.compile('postNavigation')}), # bits dict(name='div', attrs={'class':'tweet'}), @@ -235,6 +236,8 @@ class NYTimes(BasicNewsRecipe): dict(id=[ 'adxLeaderboard', 'adxSponLink', + 'anchoredAd_module', + 'anchoredAd_spot', 'archive', 'articleExtras', 'articleInline', @@ -267,7 +270,7 @@ class NYTimes(BasicNewsRecipe): 'related-content', #added for DealBook 'whats-next', ]), - dict(name=['script', 'noscript', 'style','form','hr', 'button'])] + dict(name=['script', 'noscript', 'style','form','hr', 'button', 'meta'])] no_stylesheets = True extra_css = ''' .articleHeadline { text-align: left; margin-top:0.5em; margin-bottom:0.25em; }