home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / dbb.recipe < prev    next >
Text File  |  2011-09-09  |  2KB  |  46 lines

  1. # -*- coding: utf-8
  2.  
  3. __license__   = 'GPL v3'
  4. __author__    = 'Luis Hernandez'
  5. __copyright__ = 'Luis Hernandez<tolyluis@gmail.com>'
  6.  
  7. '''
  8. http://www.filmica.com/david_bravo/
  9. '''
  10.  
  11. from calibre.web.feeds.news import BasicNewsRecipe
  12.  
  13. class AdvancedUserRecipe1294946868(BasicNewsRecipe):
  14.  
  15.     title             = u'Blog de David Bravo'
  16.     publisher      = u'Filmica'
  17.  
  18.     __author__  = 'Luis Hern├índez'
  19.     description   = 'blog sobre leyes, p2p y copyright'
  20.     cover_url     = 'http://www.elpais.es/edigitales/image.php?foto=par/portada/1551.jpg'
  21.  
  22.     oldest_article = 365
  23.     max_articles_per_feed = 100
  24.  
  25.     remove_javascript = True
  26.     no_stylesheets        = True
  27.     use_embedded_content  = False
  28.  
  29.     encoding              = 'ISO-8859-1'
  30.     language              = 'es'
  31.     timefmt        = '[%a, %d %b, %Y]'
  32.  
  33.     keep_only_tags     = [
  34.                                     dict(name='div', attrs={'class':['blog','date','blogbody','comments-head','comments-body']})
  35.                                    ,dict(name='span', attrs={'class':['comments-post']})
  36.                                 ]
  37.  
  38.     remove_tags_before = dict(name='div' , attrs={'id':['bitacoras']})
  39.     remove_tags_after  = dict(name='div' , attrs={'id':['comments-body']})
  40.  
  41.     extra_css             = ' p{text-align: justify; font-size: 100%} body{ text-align: left; font-family: serif; font-size: 100% } h2{ font-family: sans-serif; font-size:75%; font-weight: 800; text-align: justify } h3{ font-family: sans-serif; font-size:150%; font-weight: 600; text-align: left } img{margin-bottom: 0.4em} '
  42.  
  43.  
  44.  
  45.     feeds          = [(u'Blog', u'http://www.filmica.com/david_bravo/index.rdf')]
  46.