From 4b6780a6c3cb67642a607a22ac5b6049c293095f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 31 May 2018 07:16:25 +0530 Subject: [PATCH] Update Associated Press --- recipes/ap.recipe | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/recipes/ap.recipe b/recipes/ap.recipe index 1a77d20a91..0d290bccd4 100644 --- a/recipes/ap.recipe +++ b/recipes/ap.recipe @@ -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):