from calibre.web.feeds.news import BasicNewsRecipe


class FairbanksDailyNewsminer(BasicNewsRecipe):
    title = u'Fairbanks Daily News-miner'
    __author__ = 'Roger'
    oldest_article = 7
    max_articles_per_feed = 100
    description = 'The voice of interior Alaska since 1903'
    publisher = 'http://www.newsminer.com/'
    category = 'news, Alaska, Fairbanks'
    language = 'en'
    remove_javascript = True
    use_embedded_content = False
    no_stylesheets = True
    language = 'en'
    encoding = 'utf8'
    conversion_options = {'linearize_tables': True}
    auto_cleanup = True

    feeds = [
        (u'Alaska News',
         u'http://www.newsminer.com/search/?f=rss&t=article&c=news/alaska_news&l=50&s=start_time&sd=desc'),
        (u'Local News',
         u'http://www.newsminer.com/search/?f=rss&t=article&c=news/local_news&l=50&s=start_time&sd=desc'),
        (u'Business',
         u'http://www.newsminer.com/search/?f=rss&t=article&c=business&l=50&s=start_time&sd=desc'),
        (u'Politics',
         u'http://www.newsminer.com/search/?f=rss&t=article&c=news/politics&l=50&s=start_time&sd=desc'),
        (u'Sports',
         u'http://www.newsminer.com/search/?f=rss&t=article&c=sports&l=50&s=start_time&sd=desc'),
        (u'Opinion',
         u'http://www.newsminer.com/search/?f=rss&t=article&c=opinion&l=50&s=start_time&sd=desc'),
    ]
