mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 06:14:50 +02:00
Update brand_eins.recipe: remove sharing links, ads
This commit is contained in:
parent
825905a092
commit
9628389c91
1 changed files with 3 additions and 2 deletions
|
|
@ -37,8 +37,9 @@ class BrandEins(BasicNewsRecipe):
|
|||
keep_only_tags = dict(name='div', attrs={'id':'content'})
|
||||
|
||||
# remove share image from articles
|
||||
remove_tags = [dict(name='img', attrs={'class':'share-instruction'}),
|
||||
dict(name='div', attrs={'class':'articleAuthor'})]
|
||||
remove_tags = [dict(name='div', attrs={'class':'advertisement rectangle desktop'}),
|
||||
dict(name='h3', attrs={'class':'sharing-headline'}),
|
||||
dict(name='div', attrs={'class':'sharing-links'})]
|
||||
|
||||
remove_tags_before = dict(name='div', attrs={'class':'innerContent typeArticle'})
|
||||
remove_tags_after = dict(name='div', attrs={'id':'socialshareprivacy'})
|
||||
|
|
|
|||
Loading…
Reference in a new issue