mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 02:43:46 +02:00
Update Associated Press
This commit is contained in:
parent
75767875d3
commit
4b6780a6c3
1 changed files with 3 additions and 4 deletions
|
|
@ -28,12 +28,11 @@ class AssociatedPress(BasicNewsRecipe):
|
|||
ignore_duplicate_articles = {'title', 'url'}
|
||||
remove_empty_feeds = False
|
||||
keep_only_tags = [
|
||||
classes('ap_headTitle'),
|
||||
dict(id="byLine"),
|
||||
dict(id=lambda x: x and x.startswith('storyBodyDiv')),
|
||||
classes('topTitle articleImage articleBody'),
|
||||
]
|
||||
remove_tags = [
|
||||
dict(id='ppPhoto ppPhoto1'.split()),
|
||||
classes('ad-placeholder modalImageButton modalVideoButton'),
|
||||
dict(name='button'),
|
||||
]
|
||||
|
||||
def parse_index(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue