calibre/recipes/ppe_pl.recipe
Kovid Goyal 29cd8d64ea
Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30

31 lines
1.1 KiB
Python

#!/usr/bin/env python
__license__ = 'GPL v3'
from calibre.web.feeds.news import BasicNewsRecipe
class ppeRecipe(BasicNewsRecipe):
__author__ = u'Artur Stachecki <artur.stachecki@gmail.com>'
language = 'pl'
title = u'ppe.pl'
category = u'News'
description = u'Portal o konsolach i grach wideo.'
extra_css = '.categories > li {list-style: none; display: inline;} .galmini > li {list-style: none; float: left;} .calibre_navbar {clear: both;}'
remove_empty_feeds = True
no_stylesheets = True
oldest_article = 7
max_articles_per_feed = 100
remove_javascript = True
remove_empty_feeds = True
remove_attributes = ['style']
keep_only_tags = [dict(attrs={'class': 'box'})]
remove_tags = [dict(attrs={'class': ['voltage-1', 'voltage-2',
'encyklopedia', 'nag', 'related', 'comment_form', 'komentarze-box']})]
feeds = [
('Newsy', 'http://ppe.pl/rss.html'),
('Recenzje', 'http://ppe.pl/rss-recenzje.html'),
('Publicystyka', 'http://ppe.pl/rss-publicystyka.html'),
]