mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
recipes: remove some garbage from alejakomiksu
This commit is contained in:
parent
f00b58c766
commit
d41b8fc707
@ -10,8 +10,6 @@ class AlejaKomiksu(BasicNewsRecipe):
|
|||||||
category = 'comics'
|
category = 'comics'
|
||||||
language = 'pl'
|
language = 'pl'
|
||||||
extra_css = 'ul {list-style-type: none;} .gfx_news {float: right;}'
|
extra_css = 'ul {list-style-type: none;} .gfx_news {float: right;}'
|
||||||
preprocess_regexps = [(re.compile(ur'((<li class="no_img_b">(Do poczytania)|(Nowości):</li>)|(<p class="head2">Komentarze</p>)).*</body>',
|
|
||||||
re.DOTALL | re.IGNORECASE), lambda match: '</body>')]
|
|
||||||
cover_url = 'http://www.alejakomiksu.com/gfx/build/logo.png'
|
cover_url = 'http://www.alejakomiksu.com/gfx/build/logo.png'
|
||||||
masthead_url = 'http://www.alejakomiksu.com/gfx/build/logo.png'
|
masthead_url = 'http://www.alejakomiksu.com/gfx/build/logo.png'
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
@ -23,7 +21,7 @@ class AlejaKomiksu(BasicNewsRecipe):
|
|||||||
remove_attributes = ['style', 'font']
|
remove_attributes = ['style', 'font']
|
||||||
ignore_duplicate_articles = {'title', 'url'}
|
ignore_duplicate_articles = {'title', 'url'}
|
||||||
|
|
||||||
keep_only_tags = [dict(attrs={'class': 'cont_tresc'})]
|
keep_only_tags = dict(attrs={'class': ['akNews__header','akNews__body']})
|
||||||
|
|
||||||
feeds = [(u'Wiadomości', 'http://www.alejakomiksu.com/rss.php5')]
|
feeds = [(u'Wiadomości', 'http://www.alejakomiksu.com/rss.php5')]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user