home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 January / maximum-cd-2011-01.iso / DiscContents / calibre-0.7.26.msi / file_4365 < prev    next >
Encoding:
Text File  |  2010-10-29  |  1002 b   |  25 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class Tagesschau(BasicNewsRecipe):
  4.      title          = 'Tagesschau'
  5.      description    = 'Nachrichten der ARD'
  6.      publisher      = 'ARD'
  7.      language       = 'de_DE'
  8.  
  9.      __author__     = 'Florian Andreas Pfaff'
  10.      oldest_article = 7
  11.      max_articles_per_feed = 100
  12.      no_stylesheets = True
  13.  
  14.      feeds          = [('Tagesschau', 'http://www.tagesschau.de/xml/rss2')]
  15.  
  16.      remove_tags    = [
  17.                        dict(name='div', attrs={'class':['linksZumThema schmal','teaserBox','boxMoreLinks','directLinks','teaserBox boxtext','fPlayer','zitatBox breit flashaudio']}),
  18.                        dict(name='div',
  19.  attrs={'id':['socialBookmarks','seitenanfang']}),
  20.                        dict(name='ul',
  21.  attrs={'class':['directLinks','directLinks weltatlas']}),
  22.                        dict(name='strong', attrs={'class':['boxTitle inv','inv']})
  23.                       ]
  24.      keep_only_tags = [dict(name='div', attrs={'id':'centerCol'})]
  25.