remove ads

This commit is contained in:
Tomasz Długosz 2018-10-15 22:52:21 +02:00
parent b1a993407b
commit 8882a598e1

View File

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