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

  1. from calibre.web.feeds.recipes import BasicNewsRecipe
  2. class AdvancedUserRecipe(BasicNewsRecipe):
  3.  
  4.     title          = u'Frankfurter Rundschau'
  5.     __author__  = 'schuster'
  6.     oldest_article = 1
  7.     max_articles_per_feed = 100
  8.     no_stylesheets         = True
  9.     use_embedded_content   = False
  10.     language               = 'de'
  11.     remove_javascript      = True
  12.     cover_url = 'http://www.fr-online.de/image/view/-/1474018/data/823538/-/logo.png'
  13.     extra_css = '''
  14.                     h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
  15.                     h4{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
  16.                     img {min-width:300px; max-width:600px; min-height:300px; max-height:800px}
  17.                     p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
  18.                     body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
  19.     '''
  20.  
  21.     feeds          = [(u'Startseite', u'http://www.fr-online.de/home/-/1472778/1472778/-/view/asFeed/-/index.xml'),
  22.                           (u'Politik', u'http://www.fr-online.de/politik/-/1472596/1472596/-/view/asFeed/-/index.xml'),
  23.                           (u'Meinungen', u'http://www.fr-online.de/politik/meinung/-/1472602/1472602/-/view/asFeed/-/index.xml'),
  24.                           (u'Wirtschaft', u'http://www.fr-online.de/wirtschaft/-/1472780/1472780/-/view/asFeed/-/index.xml'),
  25.                           (u'Sport', u'http://www.fr-online.de/sport/-/1472784/1472784/-/view/asFeed/-/index.xml'),
  26.                           (u'Kultur', u'http://www.fr-online.de/kultur/-/1472786/1472786/-/view/asFeed/-/index.xml'),
  27.                           (u'Panorama', u'http://www.fr-online.de/panorama/-/1472782/1472782/-/view/asFeed/-/index.xml'),
  28.                           (u'Digital', u'http://www.fr-online.de/digital/-/1472406/1472406/-/view/asFeed/-/index.xml'),
  29.                           (u'Wissenschaft', u'http://www.fr-online.de/wissenschaft/-/1472788/1472788/-/view/asFeed/-/index.xml')
  30. ]
  31.  
  32.  
  33.     def print_version(self, url):
  34.         return url.replace('index.html', 'view/printVersion/-/index.html')
  35.  
  36.