From b06e4419bce6af815ec2ff598f2aed1b11ba89c7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 8 Aug 2011 12:55:31 -0600 Subject: [PATCH] Blog Escrevinhador by Diniz Bortolotto --- recipes/escrevinhador.recipe | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 recipes/escrevinhador.recipe diff --git a/recipes/escrevinhador.recipe b/recipes/escrevinhador.recipe new file mode 100644 index 0000000000..0003b798c6 --- /dev/null +++ b/recipes/escrevinhador.recipe @@ -0,0 +1,28 @@ +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'}) + ] +