from calibre.web.feeds.news import BasicNewsRecipe


class FairbanksDailyNewsminer(BasicNewsRecipe):
    title = '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
    encoding = 'utf8'
    conversion_options = {'linearize_tables': True}
    auto_cleanup = True

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