from calibre.web.feeds.news import BasicNewsRecipe


class Niebezpiecznik_pl(BasicNewsRecipe):
    title = 'Niebezpiecznik.pl'
    __author__ = 'fenuks'
    description = 'Niebezpiecznik.pl – o bezpieczeństwie i nie...'
    category = 'hacking, IT'
    language = 'pl'
    oldest_article = 8
    extra_css = '.entry {margin-top: 25px;}'
    remove_attrs = ['style']
    max_articles_per_feed = 100
    no_stylesheets = True
    remove_empty_feeds = True
    cover_url = 'http://userlogos.org/files/logos/Karmody/niebezpiecznik_01.png'
    remove_tags = [dict(name='div', attrs={'class': ['sociable']}), dict(name='h4'), dict(attrs={'class': 'similar-posts'})]
    keep_only_tags = [dict(name='div', attrs={'class': ['title', 'entry']})]
    feeds = [('Wiadomości', 'http://feeds.feedburner.com/niebezpiecznik/'), ('Blog', 'http://feeds.feedburner.com/niebezpiecznik/linkblog/')]
