| 1 |
#!/usr/bin/env python |
| 2 |
__license__ = 'GPL v3' |
| 3 |
|
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class OptyczneRecipe(BasicNewsRecipe): |
| 8 |
__author__ = 'Artur Stachecki <[email protected]>' |
| 9 |
language = 'pl' |
| 10 |
|
| 11 |
title = 'optyczne.pl' |
| 12 |
category = 'News' |
| 13 |
description = 'Najlepsze testy obiektywów, testy aparatów cyfrowych i testy lornetek w sieci!' |
| 14 |
cover_url = '' |
| 15 |
remove_empty_feeds = True |
| 16 |
oldest_article = 7 |
| 17 |
max_articles_per_feed = 100 |
| 18 |
recursions = 0 |
| 19 |
|
| 20 |
no_stylesheets = True |
| 21 |
remove_javascript = True |
| 22 |
|
| 23 |
keep_only_tags = dict(name='div', attrs={'class': 'main-article-content'}) |
| 24 |
|
| 25 |
remove_tags = [dict(name='div', attrs={'class': ['banner', 'colored', 'content-panel']}), dict(name='a', attrs={'class': 'icon-link comments-link'})] |
| 26 |
|
| 27 |
extra_css = ''' |
| 28 |
body {font-family: Arial,Helvetica,sans-serif;} |
| 29 |
h1{text-align: left;} |
| 30 |
h2{font-size: medium; font-weight: bold;} |
| 31 |
p.lead {font-weight: bold; text-align: left;} |
| 32 |
.authordate {font-size: small; color: #696969;} |
| 33 |
.fot{font-size: x-small; color: #666666;} |
| 34 |
''' |
| 35 |
feeds = [ |
| 36 |
('Aktualności', 'http://www.optyczne.pl/rss.xml'), |
| 37 |
] |