from calibre.web.feeds.news import BasicNewsRecipe


class JerusalemPost(BasicNewsRecipe):

    title = 'Jerusalem Post'
    description = 'News from Israel and the Middle East'
    use_embedded_content = False
    auto_cleanup = True
    auto_cleanup_keep = '//img[@id="ctl00_ContentPlaceHolder1_article_control_image"]'
    language = 'en'

    __author__ = 'Kovid Goyal'
    max_articles_per_feed = 10
    no_stylesheets = True

    feeds = [('Front Page', 'http://www.jpost.com/Rss/RssFeedsFrontPage.aspx'),
             ('Israel News',
              'http://www.jpost.com/Rss/RssFeedsIsraelNews.aspx'),
             ('Middle East News',
              'http://www.jpost.com/Rss/RssFeedsMiddleEastNews.aspx'),
             ('International News',
              'http://www.jpost.com/Rss/RssFeedsPolitiqueetsocial.aspx'),
             ]
