home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / heise_online.recipe < prev    next >
Encoding:
Text File  |  2011-09-09  |  2.5 KB  |  53 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2. class AdvancedUserRecipe(BasicNewsRecipe):
  3.  
  4.     title = 'Heise-online'
  5.     description = 'News vom Heise-Verlag'
  6.     __author__ = 'schuster'
  7.     use_embedded_content   = False
  8.     language = 'de'
  9.     oldest_article = 2
  10.     max_articles_per_feed = 35
  11.     rescale_images = True
  12.     remove_empty_feeds = True
  13.     timeout = 5
  14.     no_stylesheets = True
  15.  
  16.  
  17.     remove_tags_after = dict(name ='p', attrs={'class':'editor'})
  18.     remove_tags = [dict(id='navi_top_container'),
  19.                             dict(id='navi_bottom'),
  20.                             dict(id='mitte_rechts'),
  21.                             dict(id='navigation'),
  22.                             dict(id='subnavi'),
  23.                             dict(id='social_bookmarks'),
  24.                             dict(id='permalink'),
  25.                             dict(id='content_foren'),
  26.                             dict(id='seiten_navi'),
  27.                             dict(id='adbottom'),
  28.                             dict(id='sitemap')]
  29.  
  30.     feeds =  [
  31.                    ('Newsticker', 'http://www.heise.de/newsticker/heise.rdf'),
  32.                    ('Auto', 'http://www.heise.de/autos/rss/news.rdf'),
  33.                    ('Foto ', 'http://www.heise.de/foto/rss/news-atom.xml'),
  34.                    ('Mac&i', 'http://www.heise.de/mac-and-i/news.rdf'),
  35.                    ('Mobile ', 'http://www.heise.de/mobil/newsticker/heise-atom.xml'),
  36.                    ('Netz ', 'http://www.heise.de/netze/rss/netze-atom.xml'),
  37.                    ('Open ', 'http://www.heise.de/open/news/news-atom.xml'),
  38.                    ('Resale ', 'http://www.heise.de/resale/rss/resale.rdf'),
  39.                    ('Security ', 'http://www.heise.de/security/news/news-atom.xml'),
  40.                    ('C`t', 'http://www.heise.de/ct/rss/artikel-atom.xml'),
  41.                    ('iX', 'http://www.heise.de/ix/news/news.rdf'),
  42.                    ('Mach-flott', 'http://www.heise.de/mach-flott/rss/mach-flott-atom.xml'),
  43.                    ('Blog: Babel-Bulletin', 'http://www.heise.de/developer/rss/babel-bulletin/blog.rdf'),
  44.                    ('Blog: Der Dotnet-Doktor', 'http://www.heise.de/developer/rss/dotnet-doktor/blog.rdf'),
  45.                    ('Blog: Bernds Management-Welt', 'http://www.heise.de/developer/rss/bernds-management-welt/blog.rdf'),
  46.                    ('Blog: IT conversation', 'http://www.heise.de/developer/rss/world-of-it/blog.rdf'),
  47.                    ('Blog: Kais bewegtes Web', 'http://www.heise.de/developer/rss/kais-bewegtes-web/blog.rdf')
  48. ]
  49.  
  50.     def print_version(self, url):
  51.         return url + '?view=print'
  52.  
  53.