#!/usr/bin/env python __license__ = 'GPL v3' from calibre.web.feeds.news import BasicNewsRecipe class OptyczneRecipe(BasicNewsRecipe): __author__ = 'Artur Stachecki ' language = 'pl' title = 'optyczne.pl' category = 'News' description = 'Najlepsze testy obiektywów, testy aparatów cyfrowych i testy lornetek w sieci!' cover_url = '' remove_empty_feeds = True oldest_article = 7 max_articles_per_feed = 100 recursions = 0 no_stylesheets = True remove_javascript = True keep_only_tags = dict(name='div', attrs={'class': 'main-article-content'}) remove_tags = [dict(name='div', attrs={'class': ['banner', 'colored', 'content-panel']}), dict(name='a', attrs={'class': 'icon-link comments-link'})] extra_css = ''' body {font-family: Arial,Helvetica,sans-serif;} h1{text-align: left;} h2{font-size: medium; font-weight: bold;} p.lead {font-weight: bold; text-align: left;} .authordate {font-size: small; color: #696969;} .fot{font-size: x-small; color: #666666;} ''' feeds = [ ('Aktualności', 'http://www.optyczne.pl/rss.xml'), ]