from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1301860159(BasicNewsRecipe):
    title = u'F-Secure Weblog'
    language = 'en'
    __author__ = 'louhike'
    description = u'All the news from the weblog of F-Secure'
    publisher = u'F-Secure'
    timefmt = ' [%a, %d %b, %Y]'
    encoding = 'ISO-8859-1'
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets = True
    use_embedded_content = False
    remove_javascript = True
    keep_only_tags = [dict(name='div', attrs={'class': 'modSectionTd2'})]
    remove_tags = [dict(name='hr')]

    feeds = [(u'Weblog', u'http://www.f-secure.com/weblog/weblog.rss')]

    def get_cover_url(self):
        return 'http://www.f-secure.com/weblog/archives/images/company_logo.png'
