| 1 |
#!/usr/bin/env python |
| 2 |
|
| 3 |
__license__ = 'GPL v3' |
| 4 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 5 |
|
| 6 |
|
| 7 |
class ppeRecipe(BasicNewsRecipe): |
| 8 |
__author__ = 'Artur Stachecki <[email protected]>' |
| 9 |
language = 'pl' |
| 10 |
title = 'ppe.pl' |
| 11 |
category = 'News' |
| 12 |
description = 'Portal o konsolach i grach wideo.' |
| 13 |
extra_css = '.categories > li {list-style: none; display: inline;} .galmini > li {list-style: none; float: left;} .calibre_navbar {clear: both;}' |
| 14 |
no_stylesheets = True |
| 15 |
oldest_article = 7 |
| 16 |
max_articles_per_feed = 100 |
| 17 |
remove_javascript = True |
| 18 |
remove_empty_feeds = True |
| 19 |
remove_attributes = ['style'] |
| 20 |
|
| 21 |
keep_only_tags = [dict(attrs={'class': 'box'})] |
| 22 |
remove_tags = [dict(attrs={'class': ['voltage-1', 'voltage-2', 'encyklopedia', 'nag', 'related', 'comment_form', 'komentarze-box']})] |
| 23 |
|
| 24 |
feeds = [ |
| 25 |
('Newsy', 'http://ppe.pl/rss.html'), |
| 26 |
('Recenzje', 'http://ppe.pl/rss-recenzje.html'), |
| 27 |
('Publicystyka', 'http://ppe.pl/rss-publicystyka.html'), |
| 28 |
] |