mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
901f54e124
commit
25f96bd198
@ -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; }
|
||||||
|
@ -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; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user