calibre/recipes/rynek_zdrowia.recipe
Kovid Goyal 567040ee1e Perform PEP8 compliance checks on the entire codebase
Some bits of PEP 8 are turned off via setup.cfg
2016-07-29 21:25:17 +05:30

36 lines
1.5 KiB
Plaintext

from calibre.web.feeds.news import BasicNewsRecipe
class rynekzdrowia(BasicNewsRecipe):
title = u'Rynek Zdrowia'
__author__ = u'spi630'
language = 'pl'
masthead_url = 'http://k.rynekzdrowia.pl/images/headerLogo.png'
cover_url = 'http://k.rynekzdrowia.pl/images/headerLogo.png'
oldest_article = 3
max_articles_per_feed = 25
no_stylesheets = True
auto_cleanup = True
remove_empty_feeds = True
remove_tags_before = dict(name='h3')
feeds = [
(u'Finanse i Zarz\u0105dzanie', u'http://www.rynekzdrowia.pl/Kanal/finanse.html'),
(u'Inwestycje', u'http://www.rynekzdrowia.pl/Kanal/inwestycje.html'),
(u'Aparatura i wyposa\u017cenie', u'http://www.rynekzdrowia.pl/Kanal/aparatura.html'),
(u'Informatyka', u'http://www.rynekzdrowia.pl/Kanal/informatyka.html'),
(u'Prawo', u'http://www.rynekzdrowia.pl/Kanal/prawo.html'),
(u'Polityka zdrowotna', u'http://www.rynekzdrowia.pl/Kanal/polityka_zdrowotna.html'),
(u'Ubezpieczenia Zdrowotne', u'http://www.rynekzdrowia.pl/Kanal/ubezpieczenia.html'),
(u'Farmacja', u'http://www.rynekzdrowia.pl/Kanal/farmacja.html'),
(u'Badania i rozw\xf3j', u'http://www.rynekzdrowia.pl/Kanal/badania.html'),
(u'Nauka', u'http://www.rynekzdrowia.pl/Kanal/nauka.html'),
(u'Po godzinach', u'http://www.rynekzdrowia.pl/Kanal/godziny.html'),
(u'Us\u0142ugi medyczne', u'http://www.rynekzdrowia.pl/Kanal/uslugi.html')]
def print_version(self, url):
url = url.replace('.html', ',drukuj.html')
return url