Update Associated Press

This commit is contained in:
Kovid Goyal 2018-05-31 07:16:25 +05:30
parent 75767875d3
commit 4b6780a6c3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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):