from calibre.web.feeds.news import BasicNewsRecipe


class Reuters(BasicNewsRecipe):

    title = 'Reuters'
    description = 'Global news'
    __author__ = 'Kovid Goyal and Sujata Raman'
    use_embedded_content = False
    language = 'en'

    max_articles_per_feed = 10
    no_stylesheets = True
    remove_javascript = True
    auto_cleanup = True
    auto_cleanup_keep = '//div[@class="relatedPhoto landscape"]'

    extra_css      = '''
                        body{font-family:arial,helvetica,sans;}
                        h1{ font-size:larger ; font-weight:bold;  }
                        .byline{color:#006E97;font-size:x-small; font-weight:bold;}
                        .location{font-size:x-small; font-weight:bold;}
                        .timestamp{font-size:x-small; }
                     '''

    feeds = [('Top Stories', 'http://feeds.reuters.com/reuters/topNews?format=xml'),
             ('US News', 'http://feeds.reuters.com/reuters/domesticNews?format=xml'),
             ('World News', 'http://feeds.reuters.com/reuters/worldNews?format=xml'),
             ('Politics News', 'http://feeds.reuters.com/reuters/politicsNews?format=xml'),
             ('Science News', 'http://feeds.reuters.com/reuters/scienceNews?format=xml'),
             ('Environment News', 'http://feeds.reuters.com/reuters/Environment?format=xml'),
             ('Technology News',
              'http://feeds.reuters.com/reuters/technologyNews?format=xml'),
             ('Oddly Enough News',
              'http://feeds.reuters.com/reuters/oddlyEnoughNews?format=xml')
             ]
