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

  1. __license__   = 'GPL v3'
  2. __author__    = 'Luis Hernandez'
  3. __copyright__ = 'Luis Hernandez<tolyluis@gmail.com>'
  4. __version__     = 'v1.0'
  5. __date__        = '29 January 2011'
  6.  
  7. '''
  8. http://www.bbc.co.uk/mundo/
  9. '''
  10.  
  11. from calibre.web.feeds.news import BasicNewsRecipe
  12.  
  13. class AdvancedUserRecipe1294946868(BasicNewsRecipe):
  14.  
  15.     title          = u'BBC Mundo'
  16.     publisher      = u'BBC'
  17.  
  18.     __author__            = 'Luis Hernandez'
  19.     description           = 'BBC World for spanish readers'
  20.  
  21.     cover_url     = 'http://1.bp.blogspot.com/_NHiOjk_uZwU/TEYy7IJAdAI/AAAAAAAABP8/coAE-pJ7_5E/s1600/bbcmundo_h.png'
  22.     oldest_article = 2
  23.     max_articles_per_feed = 100
  24.  
  25.     remove_javascript = True
  26.     no_stylesheets        = True
  27.     use_embedded_content  = False
  28.  
  29.     language              = 'es'
  30.     remove_empty_feeds    = True
  31.     encoding               = 'UTF-8'
  32.     timefmt        = '[%a, %d %b, %Y]'
  33.  
  34.     remove_tags_before = dict(name='div' , attrs={'class':['g-group']})
  35.     remove_tags_after = dict(name='div' , attrs={'class':[' g-w8']})
  36.  
  37.     remove_tags = [
  38.                              dict(name='ul', attrs={'class':['document-tools blq-clearfix','blq-clearfix']})
  39.                             ,dict(name='div', attrs={'class':['box bx-quote-bubble','socialmedia-links','list li-carousel','list li-plain rolling-news','list li-plain','box bx-livestats','li-tab content','list li-relatedlinks','list li-relatedinternetlinks']})
  40.                          ]
  41.  
  42.     feeds = [
  43.                   (u'Portada'               , u'http://www.bbc.co.uk/mundo/index.xml')
  44.                  ,(u'Ultimas Noticias'   , u'http://www.bbc.co.uk/mundo/ultimas_noticias/index.xml')
  45.                  ,(u'Internacional'       , u'http://www.bbc.co.uk/mundo/temas/internacional/index.xml')
  46.                  ,(u'Economia'            , u'http://www.bbc.co.uk/mundo/temas/economia/index.xml')
  47.                  ,(u'America Latina'     , u'http://www.bbc.co.uk/mundo/temas/america_latina/index.xml')
  48.                  ,(u'Ciencia'                , u'http://www.bbc.co.uk/mundo/temas/ciencia/index.xml')
  49.                  ,(u'Salud'                  , u'http://www.bbc.co.uk/mundo/temas/salud/index.xml')
  50.                  ,(u'Tecnologia'           , u'http://www.bbc.co.uk/mundo/temas/tecnologia/index.xml')
  51.                  ,(u'Cultura'                , u'http://www.bbc.co.uk/mundo/temas/cultura/index.xml')
  52.              ]
  53.  
  54.