from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1290412756(BasicNewsRecipe):
    __author__ = 'Anat R.'
    title = u'Matichon'
    oldest_article = 7
    language = 'th'
    max_articles_per_feed = 100
    no_stylesheets = True
    remove_javascript = True
    use_embedded_content = False
    feeds = [(u'News', u'http://www.matichon.co.th/rss/news_article.xml'),
             (u'Columns', u'http://www.matichon.co.th/rss/news_columns.xml'),
             (u'Politics', u'http://www.matichon.co.th/rss/news_politic.xml'),
             (u'Business', u'http://www.matichon.co.th/rss/news_business.xml'),
             (u'World', u'http://www.matichon.co.th/rss/news_world.xml'),
             (u'Sports', u'http://www.matichon.co.th/rss/news_sport.xml'),
             (u'Entertainment', u'http://www.matichon.co.th/rss/news_entertainment.xml')]
    keep_only_tags = []
    keep_only_tags.append(dict(name='h3', attrs={'class': 'read-h'}))
    keep_only_tags.append(dict(name='p', attrs={'class': 'read-time'}))
    keep_only_tags.append(dict(name='div', attrs={'class': 'news-content'}))
