from calibre.web.feeds.news import BasicNewsRecipe


class CJR(BasicNewsRecipe):
    title = u'Columbia Journalism Review'
    __author__ = u'Xanthan Gum'
    description = 'News about journalism.'
    language = 'en'

    oldest_article = 7
    max_articles_per_feed = 100

    feeds = [(u'News Stories', u'http://www.cjr.org/index.xml')]

    def print_version(self, url):
        return url + '?page=all&print=true'
