from calibre.web.feeds.news import BasicNewsRecipe


class PajamasMedia(BasicNewsRecipe):
    title = 'Pajamas Media'
    description = 'Provides exclusive news and opinion for forty countries.'
    language = 'en'
    __author__ = 'Krittika Goyal'
    oldest_article = 2  # days
    max_articles_per_feed = 25
    recursions = 1
    match_regexps = [r'http://pajamasmedia.com/blog/.*/2/$']

    remove_stylesheets = True
    auto_cleanup = True
    feeds = [
        ('pajamas Media', 'http://feeds.feedburner.com/PajamasMedia'),
    ]
