mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 00:53:37 +02:00
Update New York Times
This commit is contained in:
parent
09421c66ee
commit
1fa304fed8
2 changed files with 4 additions and 0 deletions
|
|
@ -236,6 +236,7 @@ def decode_url_date(self, url):
|
|||
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 'skip-to-text-link' 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
|
||||
|
|
@ -290,6 +291,7 @@ def decode_url_date(self, url):
|
|||
'TopAd', # added for DealBook
|
||||
'related-content', # added for DealBook
|
||||
'whats-next',
|
||||
'newsletter-promo',
|
||||
]),
|
||||
dict(name=['script', 'noscript', 'style', 'form', 'hr', 'button', 'meta', 'footer'])]
|
||||
no_stylesheets = True
|
||||
|
|
|
|||
|
|
@ -236,6 +236,7 @@ def decode_url_date(self, url):
|
|||
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 'skip-to-text-link' 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
|
||||
|
|
@ -290,6 +291,7 @@ def decode_url_date(self, url):
|
|||
'TopAd', # added for DealBook
|
||||
'related-content', # added for DealBook
|
||||
'whats-next',
|
||||
'newsletter-promo',
|
||||
]),
|
||||
dict(name=['script', 'noscript', 'style', 'form', 'hr', 'button', 'meta', 'footer'])]
|
||||
no_stylesheets = True
|
||||
|
|
|
|||
Loading…
Reference in a new issue