Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 07-07-2011, 09:47 PM   #1
Bortolotto
Member
Bortolotto began at the beginning.
 
Bortolotto's Avatar
 
Posts: 15
Karma: 14
Join Date: Jun 2011
Location: Brazil
Device: Kindle
Two new recipes in Brazilian Portuguese

Hi Buddies! Here I am again!

Today I wanna share two new recipes I made.

The first is a blog on politics named "Blog da Cidadania". It means, in english, "Citizenship's Blog". It's a simple recipe, But I like the content, so, here is it.

Code:
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
The second one is a recipe with news about the UnB. UnB is a government brazilian university at Brasilia, the federal capital.

Code:
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://')
I hope you like it.
Best regards!!
Bortolotto is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Short Fiction Goldberg, Isaac (EDITOR): Brazilian Tales. v1. 18 June 07 Dr. Drib BBeB/LRF Books 2 04-05-2014 08:34 AM
fetch news from on brazilian newspaper gustavoleo Recipes 0 11-21-2010 04:04 PM
Wki translation to Brazilian Portuguese epklein Feedback 3 08-11-2010 11:22 AM
Brazilian e-book publishers available? pedgarcia News 0 09-30-2009 12:00 PM
Brazilian Ebook Reader voidIndigo News 13 08-07-2009 03:38 AM


All times are GMT -4. The time now is 10:43 AM.


MobileRead.com is a privately owned, operated and funded community.