from calibre.web.feeds.news import BasicNewsRecipe


class TechnologyReview(BasicNewsRecipe):
    title = u'Technology Review'
    __author__ = 'rty'
    description = 'MIT Technology Magazine (from RSS feeds)'
    publisher = 'Technology Review Inc.'
    category = 'Technology, Innovation, R&D'
    language = 'en'
    oldest_article = 14
    max_articles_per_feed = 100
    No_stylesheets = True
    auto_cleanup = True
    extra_css = """
    .ArticleBody {font: normal; text-align: justify}
    .headline {font: bold x-large}
    .subheadline {font: italic large}
    """
    feeds = [
        (u'Computing',
         u'http://feeds.technologyreview.com/technology_review_Computing'),
        (u'Energy',
         u'http://feeds.technologyreview.com/technology_review_Energy'),
        (u'Materials',
         u'http://feeds.technologyreview.com/technology_review_Materials'),
        (u'Biomedicine',
         u'http://feeds.technologyreview.com/technology_review_Biotech'),
        (u'Business',
         u'http://feeds.technologyreview.com/technology_review_Biztech')
    ]
