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

  1. from calibre.web.feeds.recipes import BasicNewsRecipe
  2. class AdvancedUserRecipe(BasicNewsRecipe):
  3.  
  4.     title          = u'Aachener Nachrichten'
  5.     __author__  = 'schuster'
  6.     oldest_article = 1
  7.     max_articles_per_feed = 100
  8.     use_embedded_content   = False
  9.     language               = 'de'
  10.     remove_javascript      = True
  11.     cover_url = 'http://www.an-online.de/einwaage/images/an_logo.png'
  12.     masthead_url = 'http://www.an-online.de/einwaage/images/an_logo.png'
  13.     extra_css = '''
  14.     .fliesstext_detail:{margin-bottom:10%;}
  15.     .headline_1:{margin-bottom:25%;}
  16.                     b{font-family:Arial,Helvetica,sans-serif; font-weight:200;font-size:large;}
  17.                     a{font-family:Arial,Helvetica,sans-serif; font-weight:400;font-size:large;}
  18.                     ll{font-family:Arial,Helvetica,sans-serif; font-weight:100;font-size:large;}
  19.                     h4{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
  20.                     img {min-width:300px; max-width:600px; min-height:300px; max-height:800px}
  21.                     dd{font-family:Arial,Helvetica,sans-serif;font-size:large;}
  22.                     body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
  23.     '''
  24.  
  25.  
  26.  
  27.     keep_only_tags    = [
  28.                        dict(name='span', attrs={'class':['fliesstext_detail', 'headline_1', 'autor_detail']}),
  29.                        dict(id=['header-logo'])
  30.   ]
  31.  
  32.     feeds          = [(u'Euregio', u'http://www.an-online.de/an/rss/Euregio.xml'),
  33.                           (u'Aachen', u'http://www.an-online.de/an/rss/Aachen.xml'),
  34.                           (u'Nordkreis', u'http://www.an-online.de/an/rss/Nordkreis.xml'),
  35.                           (u'D├╝ren', u'http://www.an-online.de/an/rss/Dueren.xml'),
  36.                           (u'Eiffel', u'http://www.an-online.de/an/rss/Eifel.xml'),
  37.                           (u'Eschweiler', u'http://www.an-online.de/an/rss/Eschweiler.xml'),
  38.                           (u'Geilenkirchen', u'http://www.an-online.de/an/rss/Geilenkirchen.xml'),
  39.                           (u'Heinsberg', u'http://www.an-online.de/an/rss/Heinsberg.xml'),
  40.                           (u'J├╝lich', u'http://www.an-online.de/an/rss/Juelich.xml'),
  41.                           (u'Stolberg', u'http://www.an-online.de/an/rss/Stolberg.xml'),
  42.                           (u'Ratgebenr', u'http://www.an-online.de/an/rss/Ratgeber.xml')]
  43.