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

  1. from calibre.web.feeds.recipes import BasicNewsRecipe
  2. class AdvancedUserRecipe1303841067(BasicNewsRecipe):
  3.  
  4.     title          = u'Max-Planck-Inst.'
  5.     __author__  = 'schuster'
  6.     oldest_article = 30
  7.     max_articles_per_feed = 100
  8.     no_stylesheets         = True
  9.     use_embedded_content   = False
  10.     language               = 'de'
  11.     remove_javascript      = True
  12.  
  13.     remove_tags = [dict(attrs={'class':['box_url', 'print_kontakt']}),
  14.                 dict(id=['skiplinks'])]
  15.  
  16.  
  17.  
  18.     def print_version(self, url):
  19.         split_url = url.split("/")
  20.         print_url = 'http://www.mpg.de/print/' +  split_url[3]
  21.         return print_url
  22.  
  23.     feeds          = [(u'Forschung', u'http://www.mpg.de/de/forschung.rss')]
  24.  
  25.