from calibre.web.feeds.news import BasicNewsRecipe


class SGhu(BasicNewsRecipe):
    title = u'SG.hu'
    __author__ = 'davotibarna'
    description = u'Informatika \xe9s Tudom\xe1ny'
    language = 'hu'
    oldest_article = 5
    max_articles_per_feed = 100
    no_stylesheets = True
    encoding = 'utf-8'

    feeds = [(u'SG.hu', u'http://www.sg.hu/plain/rss.xml')]

    def print_version(self, url):
        return url.replace('cikkek/', 'printer.php?cid=')
