calibre/recipes/histmag.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

31 lines
1.1 KiB
Python

#!/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;}'''
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')]