from calibre.web.feeds.recipes import BasicNewsRecipe class TaNea(BasicNewsRecipe): title = u'Ta Nea' __author__ = 'Pan' oldest_article = 1 max_articles_per_feed = 100 no_stylesheets = True language = 'el' remove_tags_before = dict(name='div', attrs={'id': 'print-body'}) remove_tags_after = dict(name='div', attrs={'id': 'text'}) feeds = [ (u'\xce\x95\xce\xbb\xce\xbb\xce\xac\xce\xb4\xce\xb1', u'http://www.tanea.gr/default.asp?pid=66&la=1'), (u'\xce\x9a\xcf\x8c\xcf\x83\xce\xbc\xce\xbf\xcf\x82', u'http://www.tanea.gr/default.asp?pid=67&la=1'), (u'\xce\x9f\xce\xb9\xce\xba\xce\xbf\xce\xbd\xce\xbf\xce\xbc\xce\xaf\xce\xb1', u'http://www.tanea.gr/default.asp?pid=68&la=1'), (u'\xce\xa0\xce\xbf\xce\xbb\xce\xb9\xcf\x84\xce\xb9\xcf\x83\xce\xbc\xcf\x8c\xcf\x82', u'http://www.tanea.gr/default.asp?pid=69&la=1'), (u'\xce\x93\xce\xbd\xcf\x8e\xce\xbc\xce\xb5\xcf\x82', u'http://www.tanea.gr/default.asp?pid=79&la=1'), (u'\xce\xa1\xce\xb9\xcf\x80\xce\xad\xcf\x82', u'http://www.tanea.gr/default.asp?pid=80&la=1'), (u'\xce\x91\xce\xb9\xcf\x87\xce\xbc\xce\xad\xcf\x82', u'http://www.tanea.gr/default.asp?pid=81&la=1')] def print_version(self, url): return url.replace('http://www.tanea.gr/default.asp?pid=2', 'http://www.tanea.gr/default.asp?pid=96')