from calibre.web.feeds.news import BasicNewsRecipe


class MumbaiMirror(BasicNewsRecipe):
    title = u'Mumbai Mirror'
    oldest_article = 2
    max_articles_per_feed = 100
    __author__ = 'Krittika Goyal'

    description = 'People Daily Newspaper'
    language = 'en_IN'
    category = 'News, Mumbai, India'
    remove_javascript = True
    use_embedded_content = False
    auto_cleanup = True
    no_stylesheets = True
    conversion_options = {'linearize_tables': True}

    feeds = [
        ('Cover Story',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=latest'),
        ('City Diary',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=citydiary'),
        ('Columnists',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=mmcolumnists'),
        ('Mumbai, The City',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=city'),
        ('Nation',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=nation'),
        ('Top Stories',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=topstories'),
        ('Business',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=business'),
        ('World',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=world'),
        (' Chai Time',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=chaitime'),
        ('Technology',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=technology'),
        ('Entertainment',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=entertainment'),
        ('Style',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=style'),
        ('Ask the Sexpert',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=askthesexpert'),
        ('Television',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=television'),
        ('Lifestyle',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=lifestyle'),
        ('Sports',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=sports'),
        ('Travel: Travelers Diary',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=travellersdiaries'),
        ('Travel: Domestic',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=traveldomestic'),
        ('Travel: International',
         'http://www.mumbaimirror.com/rssfeeds.aspx?feed=travelinternational')
    ]
