from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1278773519(BasicNewsRecipe):
    title = u'Waco Tribune Herald'
    __author__ = 'rty'
    pubisher = 'A Robinson Media Company'
    description = 'Waco, Texas, Newspaper'
    category = 'News, Texas, Waco'
    oldest_article = 7
    max_articles_per_feed = 100

    feeds = [
        (u'News', u'http://www.wacotrib.com/search/?q=&t=article&l=100&d=&d1=&d2=&s=start_time&sd=desc&nsa=eedition&c[]=news/ap_nation,news/ap_nation/*&f=rss'),
        (u'Sports', u'http://www.wacotrib.com/search/?q=&t=article&l=25&d=&d1=&d2=&s=start_time&sd=desc&c[]=sports*&f=rss'),
        (u'AccessWaco', u'http://www.wacotrib.com/search/?q=&t=article&l=25&d=&d1=&d2=&s=start_time&sd=desc&c[]=entertainment/accesswaco*&f=rss'),
        (u'Opinions', u'http://www.wacotrib.com/search/?q=&t=article&l=25&d=&d1=&d2=&s=start_time&sd=desc&c[]=opinion*&f=rss')
    ]

    remove_javascript = True
    use_embedded_content = False
    no_stylesheets = True
    language = 'en'
    encoding = 'utf-8'
    conversion_options = {'linearize_tables': True}
    auto_cleanup = True
