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

  1. #!/usr/bin/env  python
  2. __license__   = 'GPL v3'
  3. __author__    = 'Gabriele Marini, based on Darko Miletic'
  4. __copyright__ = '2009-2010, Darko Miletic <darko.miletic at gmail.com>'
  5. description   = 'Italian daily newspaper - 14-05-2010'
  6.  
  7. '''
  8. http://www.apcom.NET/
  9. '''
  10.  
  11. from calibre.web.feeds.news import BasicNewsRecipe
  12.  
  13. class Apcom(BasicNewsRecipe):
  14.     __author__        = 'Marini Gabriele'
  15.     description   = 'Italian daily newspaper'
  16.  
  17.     cover_url      = 'http://www.apcom.net/img/logoAP.gif'
  18.     title          = u'Apcom'
  19.     publisher      = 'TM News S.p.A.'
  20.     category       = 'News, politics, culture, economy, general interest'
  21.  
  22.     language       = 'it'
  23.     timefmt        = '[%a, %d %b, %Y]'
  24.  
  25.     oldest_article = 7
  26.     max_articles_per_feed = 50
  27.     use_embedded_content  = False
  28.     recursion             = 100
  29.  
  30.     no_stylesheets        = True
  31.     conversion_options = {'linearize_tables':True}
  32.     remove_javascript = True
  33.  
  34.     keep_only_tags     = [
  35.                           dict(name='div', attrs={'id':'ag_center'})
  36.                          ]
  37.  
  38.  
  39.  
  40.     feeds = [
  41.              (u'Globale',  u'http://www.apcom.net/rss/globale.xml '),
  42.              (u'Politica', u'http://www.apcom.net/rss/politica.xml'),
  43.              (u'Cronaca', u'http://www.apcom.net/rss/cronaca.xml'),
  44.              (u'Econimia', u'http://www.apcom.net/rss/economia.xml'),
  45.              (u'Esteri', u'http://www.apcom.net/rss/esteri.xml'),
  46.              (u'Cultura', u'http://www.apcom.net/rss/cultura.xml'),
  47.              (u'Sport', u'http://www.apcom.net/rss/sport.xml')
  48.              ]
  49.