from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1295265555(BasicNewsRecipe):
    title = u'Pro-Linux.de'
    language = 'de'
    __author__ = 'Bobus'
    oldest_article = 3
    max_articles_per_feed = 100

    feeds = [(u'Pro-Linux', u'http://www.pro-linux.de/backend/pro-linux.rdf')]

    def print_version(self, url):
        return url.replace('/news/1/', '/news/1/print/').replace('/artikel/2/', '/artikel/2/print/')

    remove_tags_after = [dict(name='div', attrs={'class': 'print_links'})]
