This commit is contained in:
Kovid Goyal 2014-01-12 11:11:00 +05:30
parent 901f54e124
commit 25f96bd198
2 changed files with 8 additions and 2 deletions

View File

@ -222,6 +222,7 @@ class NYTimes(BasicNewsRecipe):
re.compile('commentCount'), re.compile('commentCount'),
'credit' '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('toolsList')}), # bits
dict(name='div', attrs={'class':re.compile('postNavigation')}), # bits dict(name='div', attrs={'class':re.compile('postNavigation')}), # bits
dict(name='div', attrs={'class':'tweet'}), dict(name='div', attrs={'class':'tweet'}),
@ -235,6 +236,8 @@ class NYTimes(BasicNewsRecipe):
dict(id=[ dict(id=[
'adxLeaderboard', 'adxLeaderboard',
'adxSponLink', 'adxSponLink',
'anchoredAd_module',
'anchoredAd_spot',
'archive', 'archive',
'articleExtras', 'articleExtras',
'articleInline', 'articleInline',
@ -268,7 +271,7 @@ class NYTimes(BasicNewsRecipe):
'related-content', #added for DealBook 'related-content', #added for DealBook
'whats-next', 'whats-next',
]), ]),
dict(name=['script', 'noscript', 'style','form','hr', 'button'])] dict(name=['script', 'noscript', 'style','form','hr', 'button', 'meta'])]
no_stylesheets = True no_stylesheets = True
extra_css = ''' extra_css = '''
.articleHeadline { text-align: left; margin-top:0.5em; margin-bottom:0.25em; } .articleHeadline { text-align: left; margin-top:0.5em; margin-bottom:0.25em; }

View File

@ -222,6 +222,7 @@ class NYTimes(BasicNewsRecipe):
re.compile('commentCount'), re.compile('commentCount'),
'credit' '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('toolsList')}), # bits
dict(name='div', attrs={'class':re.compile('postNavigation')}), # bits dict(name='div', attrs={'class':re.compile('postNavigation')}), # bits
dict(name='div', attrs={'class':'tweet'}), dict(name='div', attrs={'class':'tweet'}),
@ -235,6 +236,8 @@ class NYTimes(BasicNewsRecipe):
dict(id=[ dict(id=[
'adxLeaderboard', 'adxLeaderboard',
'adxSponLink', 'adxSponLink',
'anchoredAd_module',
'anchoredAd_spot',
'archive', 'archive',
'articleExtras', 'articleExtras',
'articleInline', 'articleInline',
@ -267,7 +270,7 @@ class NYTimes(BasicNewsRecipe):
'related-content', #added for DealBook 'related-content', #added for DealBook
'whats-next', 'whats-next',
]), ]),
dict(name=['script', 'noscript', 'style','form','hr', 'button'])] dict(name=['script', 'noscript', 'style','form','hr', 'button', 'meta'])]
no_stylesheets = True no_stylesheets = True
extra_css = ''' extra_css = '''
.articleHeadline { text-align: left; margin-top:0.5em; margin-bottom:0.25em; } .articleHeadline { text-align: left; margin-top:0.5em; margin-bottom:0.25em; }