From 8882a598e1d2a30cc3f517d7c1c455017f0f910c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Mon, 15 Oct 2018 22:52:21 +0200 Subject: [PATCH] remove ads --- recipes/pc_lab.recipe | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/recipes/pc_lab.recipe b/recipes/pc_lab.recipe index 99ac822e73..0df923cd25 100644 --- a/recipes/pc_lab.recipe +++ b/recipes/pc_lab.recipe @@ -75,9 +75,7 @@ class PCLab(BasicNewsRecipe): href = link.get('href', None) if href and href.startswith('/'): link['href'] = 'http://pclab.pl' + href - # finally remove some tags - # for r in soup.findAll('div', attrs={'class':['tags', 'index', - # 'script_bxad_slot_display_list_bxad_slot', 'index first', 'zumi', - # 'navigation']}) + for r in soup.findAll(name='a', href=re.compile(r'^https://www.skapiec.pl/')): + r.extract() return soup