from calibre.web.feeds.news import BasicNewsRecipe class Escrevinhador(BasicNewsRecipe): title = 'Blog Escrevinhador' __author__ = 'Diniz Bortolotto' description = 'Posts do Blog Escrevinhador' publisher = 'Rodrigo Viana' oldest_article = 5 max_articles_per_feed = 20 category = 'news, politics, Brazil' language = 'pt_BR' publication_type = 'news and politics portal' use_embedded_content = False no_stylesheets = True remove_javascript = True feeds = [(u'Blog Escrevinhador', u'http://www.rodrigovianna.com.br/feed')] reverse_article_order = True remove_tags_after = [dict(name='div', attrs={'class': 'text'})] remove_tags = [ dict(id='header'), dict(name='p', attrs={'class': 'tags'}), dict(name='div', attrs={'class': 'sociable'}) ]