#!/usr/bin/env python2 __license__ = 'GPL v3' __copyright__ = '2010, matek09, matek09@gmail.com' from calibre.web.feeds.news import BasicNewsRecipe class Histmag(BasicNewsRecipe): title = u'Histmag' oldest_article = 7 max_articles_per_feed = 100 cover_url='http://histmag.org/grafika/loga/histmag-logo-2-300px.png' __author__ = 'matek09' description = u"Artykuly historyczne i publicystyczne" encoding = 'utf-8' extra_css = '''.center img {display: block;}''' #preprocess_regexps = [(re.compile(r''), lambda match: '

'),(re.compile(r''), lambda match: '

')] no_stylesheets = True language = 'pl' remove_javascript = True keep_only_tags=[dict(id='article')] remove_tags=[dict(name = 'p', attrs = {'class' : 'article-tags'}), dict(attrs={'class':'twitter-share-button'})] feeds = [(u'Wszystkie', u'http://histmag.org/rss/wszystkie.xml'), (u'Wydarzenia', u'http://histmag.org/rss/wydarzenia.xml'), (u'Recenzje', u'http://histmag.org/rss/recenzje.xml'), (u'Artykuły historyczne', u'http://histmag.org/rss/historia.xml'), (u'Publicystyka', u'http://histmag.org/rss/publicystyka.xml')]