home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_3800 < prev    next >
Encoding:
Text File  |  2009-10-14  |  1.4 KB  |  51 lines

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
  3.  
  4. '''
  5. Fetch Hessisch Niedersachsische Allgemeine.
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10.  
  11. class hnaDe(BasicNewsRecipe):
  12.  
  13.     title = 'HNA'
  14.     description = 'local news from Hessen/Germany'
  15.     __author__ = 'Oliver Niesner'
  16.     use_embedded_content   = False
  17.     language = 'de'
  18.  
  19.     use_embedded_content   = False
  20.     timefmt = ' [%d %b %Y]'
  21.     max_articles_per_feed = 40
  22.     no_stylesheets = True
  23.     remove_javascript = True
  24.     encoding = 'iso-8859-1'
  25.  
  26.     remove_tags = [dict(id='topnav'),
  27.            dict(id='nav_main'),
  28.            dict(id='teaser'),
  29.            dict(id='suchen'),
  30.            dict(id='superbanner'),
  31.            dict(id='navigation'),
  32.            dict(id='skyscraper'),
  33.            dict(id=''),
  34.                    dict(name='span'),
  35.            dict(name='ul', attrs={'class':'linklist'}),
  36.            dict(name='a', attrs={'href':'#'}),
  37.            dict(name='div', attrs={'class':'hlist'}),
  38.            dict(name='div', attrs={'class':'subc noprint'}),
  39.            dict(name='p', attrs={'class':'breadcrumb'}),
  40.            dict(name='a', attrs={'style':'cursor:hand'}),
  41.            dict(name='p', attrs={'class':'h5'})]
  42.     #remove_tags_after = [dict(name='div', attrs={'class':'rahmenbreaking'})]
  43.     remove_tags_after = [dict(name='a', attrs={'href':'#'})]
  44.  
  45.     feeds =  [ ('hna_soehre', 'http://feeds2.feedburner.com/hna/soehre'),
  46.            ('hna_kassel', 'http://feeds2.feedburner.com/hna/kassel') ]
  47.  
  48.  
  49.  
  50.  
  51.