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

  1. #!/usr/bin/env  python
  2. __license__     = 'GPL v3'
  3. __copyright__   = '11 December 2010, desUBIKado'
  4. __author__      = 'desUBIKado'
  5. __description__ = 'Entertainment guide from Aragon'
  6. __version__     = 'v0.01'
  7. __date__        = '11, December 2010'
  8. '''
  9. [url]http://www.redaragon.es/[/url]
  10. '''
  11.  
  12. from calibre.web.feeds.news import BasicNewsRecipe
  13.  
  14. class heraldo(BasicNewsRecipe):
  15.     __author__         = 'desUBIKado'
  16.     description    = u'Guia de ocio desde Aragon'
  17.     title          = u'RedAragon'
  18.     publisher      = 'Grupo Z'
  19.     category       = 'Concerts, Movies, Entertainment news'
  20.     cover_url      = 'http://www.redaragon.com/2008_img/logotipo.gif'
  21.     language       = 'es'
  22.     timefmt        = '[%a, %d %b, %Y]'
  23.     oldest_article = 15
  24.     max_articles_per_feed = 100
  25.     encoding       = 'iso-8859-1'
  26.     use_embedded_content  = False
  27.     remove_javascript = True
  28.     no_stylesheets = True
  29.  
  30.     feeds              = [(u'Conciertos', u'http://redaragon.com/rss/agenda.asp?tid=1'),
  31.                           (u'Exposiciones', u'http://redaragon.com/rss/agenda.asp?tid=5'),
  32.                           (u'Teatro', u'http://redaragon.com/rss/agenda.asp?tid=10'),
  33.                           (u'Conferencias', u'http://redaragon.com/rss/agenda.asp?tid=2'),
  34.                           (u'Ferias', u'http://redaragon.com/rss/agenda.asp?tid=6'),
  35.                           (u'Filmotecas/Cineclubs', u'http://redaragon.com/rss/agenda.asp?tid=7'),
  36.                           (u'Presentaciones', u'http://redaragon.com/rss/agenda.asp?tid=9'),
  37.                           (u'Fiestas', u'http://redaragon.com/rss/agenda.asp?tid=11'),
  38.                           (u'Infantil', u'http://redaragon.com/rss/agenda.asp?tid=13'),
  39.                           (u'Otros', u'http://redaragon.com/rss/agenda.asp?tid=8')]
  40.  
  41.     keep_only_tags     = [dict(name='div', attrs={'id':'FichaEventoAgenda'})]
  42.  
  43.     remove_tags        = [dict(name='div', attrs={'class':['Comparte','CajaAgenda','Caja','Cintillo']})]
  44.  
  45.     remove_tags_before = dict(name='div' , attrs={'id':'FichaEventoAgenda'})
  46.  
  47.     remove_tags_after  = dict(name='div' , attrs={'class':'Cintillo'})
  48.