home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / ZIVE.sk.recipe < prev   
Text File  |  2011-09-09  |  1KB  |  46 lines

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2. import re
  3.  
  4.  
  5.  
  6. class ZiveRecipe(BasicNewsRecipe):
  7.     __license__  = 'GPL v3'
  8.     __author__ = 'Abelturd'
  9.     language = 'sk'
  10.     version = 1
  11.  
  12.     title = u'ZIVE.sk'
  13.     publisher = u''
  14.     category = u'News, Newspaper'
  15.     description = u'Naj\u010d\xedtanej\u0161\xed denn\xedk opo\u010d\xedta\u010doch, IT a internete. '
  16.     encoding = 'UTF-8'
  17.  
  18.     oldest_article = 7
  19.     max_articles_per_feed = 100
  20.     use_embedded_content = False
  21.     remove_empty_feeds = True
  22.  
  23.     no_stylesheets = True
  24.     remove_javascript = True
  25.     cover_url = 'http://www.zive.sk/Client.Images/Logos/logo-zive-sk.gif'
  26.  
  27.     feeds = []
  28.     feeds.append((u'V\u0161etky \u010dl\xe1nky', u'http://www.zive.sk/rss/sc-47/default.aspx'))
  29.  
  30.     preprocess_regexps = [
  31.         (re.compile(r'<p><p><strong>Pokra.*ie</strong></p>', re.DOTALL|re.IGNORECASE),
  32.         lambda match: ''),
  33.  
  34.      ]
  35.  
  36.  
  37.     remove_tags = []
  38.  
  39.     keep_only_tags = [dict(name='h1'), dict(name='span', attrs={'class':'arlist-data-info-author'}), dict(name='div', attrs={'class':'bbtext font-resizer-area'}),]
  40.     extra_css = '''
  41.                 h1 {font-size:140%;font-family:georgia,serif; font-weight:bold}
  42.                 h3 {font-size:115%;font-family:georgia,serif; font-weight:bold}
  43.                 '''
  44.  
  45.  
  46.