mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
remove ads
This commit is contained in:
parent
b1a993407b
commit
8882a598e1
@ -75,9 +75,7 @@ class PCLab(BasicNewsRecipe):
|
|||||||
href = link.get('href', None)
|
href = link.get('href', None)
|
||||||
if href and href.startswith('/'):
|
if href and href.startswith('/'):
|
||||||
link['href'] = 'http://pclab.pl' + href
|
link['href'] = 'http://pclab.pl' + href
|
||||||
# finally remove some tags
|
for r in soup.findAll(name='a', href=re.compile(r'^https://www.skapiec.pl/')):
|
||||||
# for r in soup.findAll('div', attrs={'class':['tags', 'index',
|
r.extract()
|
||||||
# 'script_bxad_slot_display_list_bxad_slot', 'index first', 'zumi',
|
|
||||||
# 'navigation']})
|
|
||||||
|
|
||||||
return soup
|
return soup
|
||||||
|
Loading…
x
Reference in New Issue
Block a user