from calibre.web.feeds.news import BasicNewsRecipe class DziennikLodzki(BasicNewsRecipe): title = u'Dziennik \u0141\xf3dzki' __author__ = 'fenuks' description = u'Gazeta Regionalna Dziennik Łódzki. Najnowsze Wiadomości Łódź. Czytaj Wiadomości Łódzkie!' category = 'newspaper' language = 'pl' encoding = 'iso-8859-2' masthead_url = 'http://s.polskatimes.pl/g/logo_naglowek/dzienniklodzki.png?24' oldest_article = 7 max_articles_per_feed = 100 remove_empty_feeds = True no_stylesheets = True use_embedded_content = False ignore_duplicate_articles = {'title', 'url'} #preprocess_regexps = [(re.compile(ur'Czytaj także:.*?', re.DOTALL), lambda match: ''), (re.compile(ur',Czytaj też:.*?', re.DOTALL), lambda match: ''), (re.compile(ur'Zobacz także:.*?', re.DOTALL), lambda match: ''), (re.compile(ur'