fix Lege Artis recipe

This commit is contained in:
Tomasz Długosz 2015-10-16 16:45:19 +02:00
parent ca3f406538
commit ce4a738581

View File

@ -1,21 +1,19 @@
#!/usr/bin/env python2 #!/usr/bin/env python2
__license__ = 'GPL v3' __license__ = 'GPL v3'
__author__ = 'Mori'
__version__ = 'v. 0.1'
''' '''
olgierd.bblog.pl czasopismo.legeartis.org
''' '''
from calibre.web.feeds.news import BasicNewsRecipe from calibre.web.feeds.news import BasicNewsRecipe
class LegeArtisRecipe(BasicNewsRecipe): class LegeArtisRecipe(BasicNewsRecipe):
__author__ = 'Mori' __author__ = 'Mori, Tomasz D\u0142ugosz'
language = 'pl' language = 'pl'
title = u'Lege Artis' title = u'Lege Artis'
publisher = u'Olgierd Rudak' publisher = u'Olgierd Rudak'
description = u'Wszystko, co chcieliby\u015bcie wiedzie\u0107 o prawie, ale wstydzicie si\u0119 zapyta\u0107' description = u'Prawie wszystko, co chcieliby\u015bcie wiedzie\u0107 o prawie, ale wstydzili\u015bcie si\u0119 zapyta\u0107'
max_articles_per_feed = 100 max_articles_per_feed = 100
@ -27,17 +25,6 @@ class LegeArtisRecipe(BasicNewsRecipe):
''' '''
feeds = [ feeds = [
(u'Lege Artis', u'http://olgierd.bblog.pl/rss/rss20.xml') (u'Lege Artis', u'http://czasopismo.legeartis.org/feed')
] ]
keep_only_tags = [
dict(name = 'div', attrs = {'class' : 'post_title'}),
dict(name = 'div', attrs = {'class' : 'post_date'}),
dict(name = 'div', attrs = {'class' : 'post_content'})
]
remove_tags = [
dict(name = 'div', attrs = {'id' : 'bb_tools'}),
dict(name = 'div', attrs = {'class' : 'post_comments'}),
dict(name = 'object', attrs = {})
]