Kod: #!/usr/bin/env python __license__ = 'GPL v3' __author__ = 'Kurczan' __version__ = '1.0' description = 'Parkiet OnLine'
'''http://www.parkiet.com'''
from calibre.web.feeds.news import BasicNewsRecipe
class al(BasicNewsRecipe): author = 'Kurczan' description = 'Parkiet OnLine' cover_url = 'http://e-sklep.parkiet.com/images/bg/logo_parkiet.png' title = u'Parkiet OnLine'
oldest_article = 25 max_articles_per_feed = 25
feeds = [(u'Parkiet OnLine', u'http://rss.feedsportal.com/c/32890/f/530153/index.rss')]
def print_version(self,url): baseURL='http://www.parkiet.com/artykul/' segments = url.split('0H') articleURL1 = segments[1] articleURL1 = articleURL1.replace('A', '') articleURL1 = articleURL1.replace('0B', '.') articleURL1 = articleURL1.replace('/story01.htm', '')
printVerString=articleURL1 s= baseURL + printVerString + '?print=tak' return s |