Some minor maintenance on the nytimes

This commit is contained in:
Kovid Goyal 2014-02-25 20:48:59 +05:30
parent 2e20f1aa83
commit c8ddf2858f
2 changed files with 8 additions and 0 deletions

View File

@ -219,10 +219,13 @@ class NYTimes(BasicNewsRecipe):
re.compile('^leaderboard'), re.compile('^leaderboard'),
re.compile('^module'), re.compile('^module'),
re.compile('commentCount'), re.compile('commentCount'),
'lede-container',
'credit' 'credit'
]}), ]}),
dict(attrs={'class':lambda x: x and 'related-coverage-marginalia' in x.split()}), dict(attrs={'class':lambda x: x and 'related-coverage-marginalia' in x.split()}),
dict(attrs={'class':lambda x: x and 'interactive' in x.split()}), dict(attrs={'class':lambda x: x and 'interactive' in x.split()}),
dict(attrs={'class':lambda x: x and 'sharetools' in x.split()}),
dict(attrs={'class':lambda x: x and 'ad' 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 +238,7 @@ class NYTimes(BasicNewsRecipe):
dict(name='div', attrs={'class':re.compile('entry-tags')}), # pogue dict(name='div', attrs={'class':re.compile('entry-tags')}), # pogue
dict(id=[ dict(id=[
'adxLeaderboard', 'adxLeaderboard',
'pagelinks',
'adxSponLink', 'adxSponLink',
'anchoredAd_module', 'anchoredAd_module',
'anchoredAd_spot', 'anchoredAd_spot',

View File

@ -219,10 +219,13 @@ class NYTimes(BasicNewsRecipe):
re.compile('^leaderboard'), re.compile('^leaderboard'),
re.compile('^module'), re.compile('^module'),
re.compile('commentCount'), re.compile('commentCount'),
'lede-container',
'credit' 'credit'
]}), ]}),
dict(attrs={'class':lambda x: x and 'related-coverage-marginalia' in x.split()}), dict(attrs={'class':lambda x: x and 'related-coverage-marginalia' in x.split()}),
dict(attrs={'class':lambda x: x and 'interactive' in x.split()}), dict(attrs={'class':lambda x: x and 'interactive' in x.split()}),
dict(attrs={'class':lambda x: x and 'sharetools' in x.split()}),
dict(attrs={'class':lambda x: x and 'ad' 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 +238,7 @@ class NYTimes(BasicNewsRecipe):
dict(name='div', attrs={'class':re.compile('entry-tags')}), # pogue dict(name='div', attrs={'class':re.compile('entry-tags')}), # pogue
dict(id=[ dict(id=[
'adxLeaderboard', 'adxLeaderboard',
'pagelinks',
'adxSponLink', 'adxSponLink',
'anchoredAd_module', 'anchoredAd_module',
'anchoredAd_spot', 'anchoredAd_spot',