from calibre.web.feeds.news import BasicNewsRecipe


class NYTimesGlobal(BasicNewsRecipe):
    title = u'NY Times Global'
    language = 'en'
    __author__ = 'Krittika Goyal'
    oldest_article = 1  # days
    max_articles_per_feed = 25
    use_embedded_content = False

    no_stylesheets = True
    auto_cleanup = True

    feeds = [
        ('NYTimes',
         'http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml'),
        ('NYTimes global',
         'http://www.nytimes.com/services/xml/rss/nyt/GlobalHome.xml'),
        ('World',
         'http://www.nytimes.com/services/xml/rss/nyt/World.xml'),
        ('U.S.',
         'http://www.nytimes.com/services/xml/rss/nyt/US.xml'),
        ('Business',
         'http://feeds.nytimes.com/nyt/rss/Business'),
        ('Sports',
         'http://www.nytimes.com/services/xml/rss/nyt/Sports.xml'),
        ('Technology',
         'http://feeds.nytimes.com/nyt/rss/Technology'),
    ]
