
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1271596863(BasicNewsRecipe):

    title          = u'The Nation'
    __author__ = 'Anat R.'
    language = 'en_TH'

    oldest_article = 7

    max_articles_per_feed = 100
    no_stylesheets = True

    remove_javascript = True

    use_embedded_content = False
    feeds          = [(u'Topstory',
u'http://www.nationmultimedia.com/home/rss/topstories.rss'),
(u'National', u'http://www.nationmultimedia.com/home/rss/national.rss'),
 (u'Politics',
u'http://www.nationmultimedia.com/home/rss/politics.rss'), (u'Business',
 u'http://www.nationmultimedia.com/home/rss/business.rss'),
(u'Regional', u'http://www.nationmultimedia.com/home/rss/regional.rss'),
 (u'Sports', u'http://www.nationmultimedia.com/home/rss/sport.rss'),
(u'Travel', u'http://www.nationmultimedia.com/home/rss/travel.rss'),
(u'Life', u'http://www.nationmultimedia.com/home/rss/life.rss')]
    keep_only_tags = []

    keep_only_tags.append(dict(name = 'div', attrs = {'class' :
'pd10'}))
    remove_tags = []

    remove_tags.append(dict(name = 'div', attrs = {'class':
'WrapperHeaderCol2-2'}))

    remove_tags.append(dict(name = 'div', attrs = {'class':
'LayoutMenu2'}))

    remove_tags.append(dict(name = 'div', attrs = {'class':
'TextHeaderRight'}))

    remove_tags.append(dict(name = "ul",attrs =  {'id':'toolZoom'}))

