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

  1.  
  2. from calibre.web.feeds.news import BasicNewsRecipe
  3.  
  4. class fd(BasicNewsRecipe):
  5.     title          = u'Het Financieele Dagblad'
  6.     __author__ = 'marvin_2'
  7.     oldest_article = 7
  8.     max_articles_per_feed = 100
  9.     no_stylesheets = True
  10.     cover_url = 'http://www.fd.nl/static/gfx/logo-fd-164x78.gif'
  11.     language = 'nl'
  12.  
  13.     keep_only_tags = (dict(name = 'div', attrs = {'class': ['headlinearticle']}))
  14.     remove_tags    = [dict(name='span' , attrs={'class':['opties']})]
  15.  
  16.     feeds          = [
  17.                         (u'Overzicht',u'http://www.fd.nl/nieuws/overzicht/?view=RSS&profiel=OPENBAAR')
  18.  
  19.  
  20.                      ]
  21.     extra_css = '''
  22.         h1 {font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:x-large;}
  23.         p{font-family:Arial,Helvetica,sans-serif;}
  24.         strong{font-weight:bold; margin-right:5pt;margin-top:20pt;}
  25.         .datum_ie {font-style:italic;font-size:small;}
  26.         img {align:left;}
  27.         '''
  28.  
  29.  
  30.