From b5da82b1dbe8d881d8b24f11feb56f6930f4668a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Jul 2011 21:07:40 -0600 Subject: [PATCH] Blog da Cidadania and Noticias UnB by Diniz Bortolotto --- recipes/blog_da_cidadania.recipe | 20 ++++++++++++++++++++ recipes/noticias_unb.recipe | 24 ++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 recipes/blog_da_cidadania.recipe create mode 100644 recipes/noticias_unb.recipe diff --git a/recipes/blog_da_cidadania.recipe b/recipes/blog_da_cidadania.recipe new file mode 100644 index 0000000000..8988d6eb28 --- /dev/null +++ b/recipes/blog_da_cidadania.recipe @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- + +from calibre.web.feeds.news import BasicNewsRecipe + +class BlogdaCidadania(BasicNewsRecipe): + title = 'Blog da Cidadania' + __author__ = 'Diniz Bortolotto' + description = 'Posts do Blog da Cidadania' + oldest_article = 7 + max_articles_per_feed = 50 + encoding = 'utf8' + publisher = 'Eduardo Guimaraes' + category = 'politics, Brazil' + language = 'pt_BR' + publication_type = 'politics portal' + + feeds = [(u'Blog da Cidadania', u'http://www.blogcidadania.com.br/feed/')] + + reverse_article_order = True + diff --git a/recipes/noticias_unb.recipe b/recipes/noticias_unb.recipe new file mode 100644 index 0000000000..3699926b47 --- /dev/null +++ b/recipes/noticias_unb.recipe @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- + +from calibre.web.feeds.news import BasicNewsRecipe + +class NoticiasUnB(BasicNewsRecipe): + title = 'Noticias UnB' + __author__ = 'Diniz Bortolotto' + description = 'Noticias da UnB' + oldest_article = 5 + max_articles_per_feed = 20 + category = 'news, educational, Brazil' + language = 'pt_BR' + publication_type = 'newsportal' + use_embedded_content = False + no_stylesheets = True + remove_javascript = True + + feeds = [(u'UnB AgĂȘncia', u'http://www.unb.br/noticias/rss/noticias.rss')] + + reverse_article_order = True + + def print_version(self, url): + return url.replace('http://', 'http://www.unb.br/noticias/print_email/imprimir.php?u=http://') +