Read Gazeta Prawna on your iPad or Kindle in no time. Click download to load the free ebook on your reader.

Check out all the available public recipes or write your own with these quick start guides. ReadBeam is built on calibre, so everything in the docs and the fora applies here as well.

Download for free »

Polski dziennik gospodarczy

Language: pl

Requires Subscription: No, it's available as free ebook

Schedule Every morning

			  #!/usr/bin/env python

__license__ = 'GPL v3'
__copyright__ = u'2011, Vroo <vroobelek@iq.pl>'
__author__ = u'Vroo'
'''
gazetaprawna.pl
'''

from calibre.web.feeds.news import BasicNewsRecipe

class gazetaprawna(BasicNewsRecipe):
    version = 1
    title          = u'Gazeta Prawna'
    __author__ = u'Vroo'
    publisher      = u'Infor Biznes'
    oldest_article = 7
    max_articles_per_feed = 20
    no_stylesheets = True
    remove_javascript = True
    description = 'Polski dziennik gospodarczy'
    language = 'pl'
    encoding = 'utf-8'

    remove_tags_after = [
               dict(name='div', attrs={'class':['data-art']})
    ]
    remove_tags = [
               dict(name='div', attrs={'class':['dodatki_artykulu','data-art']})
    ]

    feeds = [
      (u'Wiadomo\u015bci - najwa\u017cniejsze', u'http://www.gazetaprawna.pl/wiadomosci/najwazniejsze/rss.xml'),
      (u'Biznes i prawo gospodarcze', u'http://biznes.gazetaprawna.pl/rss.xml'),
      (u'Prawo i wymiar sprawiedliwo\u015bci', u'http://prawo.gazetaprawna.pl/rss.xml'),
      (u'Praca i ubezpieczenia', u'http://praca.gazetaprawna.pl/rss.xml'),
      (u'Podatki i rachunkowo\u015b\u0107', u'http://podatki.gazetaprawna.pl/rss.xml')
     ]


    def print_version(self, url):
        url = url.replace('wiadomosci/artykuly', 'drukowanie')
        url = url.replace('artykuly', 'drukowanie')
        url = url.replace('porady', 'drukowanie')
        url = url.replace('wywiady', 'drukowanie')
        url = url.replace('orzeczenia', 'drukowanie')
        url = url.replace('galeria', 'drukowanie')
        url = url.replace('komentarze', 'drukowanie')
        url = url.replace('biznes.gazetaprawna', 'www.gazetaprawna')
        url = url.replace('podatki.gazetaprawna', 'www.gazetaprawna')
        url = url.replace('prawo.gazetaprawna', 'www.gazetaprawna')
        url = url.replace('praca.gazetaprawna', 'www.gazetaprawna')
        return url