calibre/recipes/kdefamily_pl.recipe
2013-11-01 10:17:31 +01:00

20 lines
793 B
Plaintext

import re
from calibre.web.feeds.news import BasicNewsRecipe
class KDEFamilyPl(BasicNewsRecipe):
title = u'KDEFamily.pl'
__author__ = 'fenuks'
description = u'KDE w Polsce'
category = 'open source, KDE'
language = 'pl'
cover_url = 'http://www.mykde.home.pl/kdefamily/wp-content/uploads/2012/07/logotype-e1341585198616.jpg'
oldest_article = 7
max_articles_per_feed = 100
preprocess_regexps = [(re.compile(r"Podobne wpisy.*", re.IGNORECASE|re.DOTALL), lambda m: '')]
no_stylesheets = True
remove_empty_feeds = True
use_embedded_content = False
keep_only_tags = [dict(attrs={'class':'blog-post'})]
remove_tags = [dict(attrs={'class':['blog-bottom', 'ratings hreview-aggregate']})]
feeds = [(u'Wszystko', u'http://kdefamily.pl/feed/')]