mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Associated Press
This commit is contained in:
parent
75767875d3
commit
4b6780a6c3
@ -28,12 +28,11 @@ class AssociatedPress(BasicNewsRecipe):
|
|||||||
ignore_duplicate_articles = {'title', 'url'}
|
ignore_duplicate_articles = {'title', 'url'}
|
||||||
remove_empty_feeds = False
|
remove_empty_feeds = False
|
||||||
keep_only_tags = [
|
keep_only_tags = [
|
||||||
classes('ap_headTitle'),
|
classes('topTitle articleImage articleBody'),
|
||||||
dict(id="byLine"),
|
|
||||||
dict(id=lambda x: x and x.startswith('storyBodyDiv')),
|
|
||||||
]
|
]
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(id='ppPhoto ppPhoto1'.split()),
|
classes('ad-placeholder modalImageButton modalVideoButton'),
|
||||||
|
dict(name='button'),
|
||||||
]
|
]
|
||||||
|
|
||||||
def parse_index(self):
|
def parse_index(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user