mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Some minor maintenance on the nytimes
This commit is contained in:
parent
2e20f1aa83
commit
c8ddf2858f
@ -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',
|
||||||
|
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user