mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
31 lines
1.1 KiB
Python
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')]
|