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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1305567197(BasicNewsRecipe):
  4.     title          = u'National Geographic (DE)'
  5.     __author__  = 'Anonymous'
  6.     language = 'de'
  7.     oldest_article = 7
  8.     max_articles_per_feed = 1000
  9.     no_stylesheets         = True
  10.     use_embedded_content   = False
  11.     remove_javascript      = True
  12.     cover_url = 'http://www.nationalgeographic.de/images/national-geographic-logo.jpg'
  13.     keep_only_tags = [
  14.                               dict(name='div', attrs={'class':['contentbox_no_top_border']}) ]
  15.  
  16.     remove_tags =  [
  17.                             dict(name='div', attrs={'class':'related'}),
  18.                             dict(name='li', attrs={'class':'first'}),
  19.                             dict(name='div', attrs={'class':'extrasbox_inner'}),
  20.  
  21.                             ]
  22.  
  23.     feeds          = [  (u'National Geographic', u'http://feeds.nationalgeographic.de/ng-neueste-artikel'),
  24.  
  25.         ]
  26.