#!/usr/bin/env python __license__ = 'GPL v3' from calibre.web.feeds.news import BasicNewsRecipe class ppeRecipe(BasicNewsRecipe): __author__ = u'Artur Stachecki ' language = 'pl' title = u'ppe.pl' category = u'News' description = u'Portal o konsolach i grach wideo.' cover_url='' remove_empty_feeds= True no_stylesheets=True oldest_article = 1 max_articles_per_feed = 100000 recursions = 0 no_stylesheets = True remove_javascript = True simultaneous_downloads = 2 keep_only_tags =[] keep_only_tags.append(dict(name = 'div', attrs = {'class' : 'news-heading'})) keep_only_tags.append(dict(name = 'div', attrs = {'class' : 'tresc-poziom'})) remove_tags =[] remove_tags.append(dict(name = 'div', attrs = {'class' : 'bateria1'})) remove_tags.append(dict(name = 'div', attrs = {'class' : 'bateria2'})) remove_tags.append(dict(name = 'div', attrs = {'class' : 'bateria3'})) remove_tags.append(dict(name = 'div', attrs = {'class' : 'news-photo'})) remove_tags.append(dict(name = 'div', attrs = {'class' : 'fbl'})) remove_tags.append(dict(name = 'div', attrs = {'class' : 'info'})) remove_tags.append(dict(name = 'div', attrs = {'class' : 'links'})) remove_tags.append(dict(name = 'div', attrs = {'style' : 'padding: 4px'})) feeds = [ ('Newsy', 'feed://ppe.pl/rss/rss.xml'), ]