View Single Post
Old 06-16-2010, 11:08 AM   #2111
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
This is a working starting point recipe for Publico. Add other feeds as you see fit:

Code:
from calibre.web.feeds.news import BasicNewsRecipe

class Publico(BasicNewsRecipe):
    title                 = 'Publico'
    oldest_article        = 2
    no_stylesheets        = True
    encoding              = 'utf8'
    use_embedded_content  = False
    language              = 'pt'
    remove_empty_feeds    = True
    extra_css             = ' body{font-family: Arial,Helvetica,sans-serif } img{margin-bottom: 0.4em} '

    keep_only_tags = [dict(attrs={'class':['content-noticia-title','noticia']})]
    remove_tags    = [dict(attrs={'class':'options'})]                 


    feeds = [
               (u'Geral', u'http://feeds.feedburner.com/publicoRSS'   )
              ,(u'Mundo', u'http://feeds.feedburner.com/PublicoMundo')
            ]
Attached Files
File Type: zip publico.zip (523 Bytes, 298 views)
kiklop74 is offline