from calibre.web.feeds.news import BasicNewsRecipe


class TheConversation(BasicNewsRecipe):
    title = u'The Conversation'
    language = 'en'
    __author__ = 'Krittika Goyal'
    oldest_article = 4  # days
    max_articles_per_feed = 20
    use_embedded_content = False

    no_stylesheets = True
    auto_cleanup = True

    feeds = [
        ('All Articles', 'https://theconversation.com/au/articles.atom'),
        ('Arts + Culture', 'https://theconversation.com/au/arts/articles.atom'),
        (
            'Business + Economy',
            'https://theconversation.com/au/business/articles.atom'
        ),
        ('Cities', 'https://theconversation.com/au/cities/articles.atom'),
        ('Education', 'https://theconversation.com/au/education/articles.atom'),
        (
            'Enviroment + Energy',
            'https://theconversation.com/au/environment/articles.atom'
        ),
        ('Health + Medicine', 'https://theconversation.com/au/health/articles.atom'),
        (
            'Politics + Society',
            'https://theconversation.com/au/politics/articles.atom'
        ),
        (
            'Science + Technology',
            'https://theconversation.com/au/technology/articles.atom'
        ),
    ]
