mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix missing headlines on some wsj articles
This commit is contained in:
parent
82ab74d5a7
commit
ccc4a17060
@ -40,7 +40,7 @@ class WSJ(BasicNewsRecipe):
|
|||||||
WSJ_ITP = 'https://online.wsj.com/itp/today'
|
WSJ_ITP = 'https://online.wsj.com/itp/today'
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(classes('wsj-article-headline-wrap article_header')),
|
dict(classes('wsj-article-headline-wrap article_header bigTop__hed bigTop__dek bigTop__captioncredit')),
|
||||||
dict(name='span', itemprop='author', rel='author'),
|
dict(name='span', itemprop='author', rel='author'),
|
||||||
dict(name='article', id='article-contents articleBody'.split()),
|
dict(name='article', id='article-contents articleBody'.split()),
|
||||||
dict(name='div', id='article_story_body ncTitleArea snipper-ad-login'.split()),
|
dict(name='div', id='article_story_body ncTitleArea snipper-ad-login'.split()),
|
||||||
@ -232,10 +232,6 @@ class WSJ(BasicNewsRecipe):
|
|||||||
return [
|
return [
|
||||||
('Testing', [
|
('Testing', [
|
||||||
{'title': 'Article One',
|
{'title': 'Article One',
|
||||||
'url': 'http://online.wsj.com/articles/the-end-of-the-impulse-shopper-1416872108'}, # noqa
|
'url': 'https://www.wsj.com/articles/gms-plan-to-drop-chevy-cruze-hits-ohio-town-hard-1543314600'}, # noqa
|
||||||
{'title': 'Article Two',
|
|
||||||
'url': 'http://online.wsj.com/articles/ferguson-police-officer-not-charged-in-black-teens-shooting-1416882438'}, # noqa
|
|
||||||
{'title': 'Article Three',
|
|
||||||
'url': 'http://online.wsj.com/article/SB10634695869867284248804580297251334393676.html'}, # noqa
|
|
||||||
]),
|
]),
|
||||||
]
|
]
|
||||||
|
@ -40,7 +40,7 @@ class WSJ(BasicNewsRecipe):
|
|||||||
WSJ_ITP = 'https://online.wsj.com/itp/today'
|
WSJ_ITP = 'https://online.wsj.com/itp/today'
|
||||||
|
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
dict(classes('wsj-article-headline-wrap article_header')),
|
dict(classes('wsj-article-headline-wrap article_header bigTop__hed bigTop__dek bigTop__captioncredit')),
|
||||||
dict(name='span', itemprop='author', rel='author'),
|
dict(name='span', itemprop='author', rel='author'),
|
||||||
dict(name='article', id='article-contents articleBody'.split()),
|
dict(name='article', id='article-contents articleBody'.split()),
|
||||||
dict(name='div', id='article_story_body ncTitleArea snipper-ad-login'.split()),
|
dict(name='div', id='article_story_body ncTitleArea snipper-ad-login'.split()),
|
||||||
@ -232,10 +232,6 @@ class WSJ(BasicNewsRecipe):
|
|||||||
return [
|
return [
|
||||||
('Testing', [
|
('Testing', [
|
||||||
{'title': 'Article One',
|
{'title': 'Article One',
|
||||||
'url': 'http://online.wsj.com/articles/the-end-of-the-impulse-shopper-1416872108'}, # noqa
|
'url': 'https://www.wsj.com/articles/gms-plan-to-drop-chevy-cruze-hits-ohio-town-hard-1543314600'}, # noqa
|
||||||
{'title': 'Article Two',
|
|
||||||
'url': 'http://online.wsj.com/articles/ferguson-police-officer-not-charged-in-black-teens-shooting-1416882438'}, # noqa
|
|
||||||
{'title': 'Article Three',
|
|
||||||
'url': 'http://online.wsj.com/article/SB10634695869867284248804580297251334393676.html'}, # noqa
|
|
||||||
]),
|
]),
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user