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

  1. # -*- coding: utf-8 -*-
  2. import re
  3. from calibre.web.feeds.recipes import BasicNewsRecipe
  4.  
  5. class HVG(BasicNewsRecipe):
  6.     title                 = 'HVG.HU'
  7.     __author__            = u'Istv├ín Papp'
  8.     description           = u'Friss h├¡rek a HVG-t┼æl'
  9.     timefmt               = ' [%Y. %b. %d., %a.]'
  10.     oldest_article        = 4
  11.     language              = 'hu'
  12.  
  13.     max_articles_per_feed = 100
  14.     no_stylesheets        = True
  15.     use_embedded_content  = False
  16.     encoding              = 'utf8'
  17.     publisher             = 'HVG Online'
  18.     category              = u'news, h├¡rek, hvg'
  19.     extra_css             = 'body{ font-family: Verdana,Helvetica,Arial,sans-serif } .introduction{font-weight: bold} .story-feature{display: block; padding: 0; border: 1px solid; width: 40%; font-size: small} .story-feature h2{text-align: center; text-transform: uppercase} '
  20.     preprocess_regexps    = [(re.compile(r'<!--.*?-->', re.DOTALL), lambda m: '')]
  21.     remove_tags_before    = dict(id='pg-content')
  22.     remove_javascript     = True
  23.     remove_empty_feeds    = True
  24.  
  25.     feeds = [
  26.               (u'Itthon', u'http://hvg.hu/rss/itthon')
  27.              ,(u'Vil├íg', u'http://hvg.hu/rss/vilag')
  28.              ,(u'Gazdas├íg', u'http://hvg.hu/rss/gazdasag')
  29.              ,(u'IT | Tudom├íny', u'http://hvg.hu/rss/tudomany')
  30.              ,(u'Panor├íma', u'http://hvg.hu/rss/Panorama')
  31.              ,(u'Karrier', u'http://hvg.hu/rss/karrier')
  32.              ,(u'Gasztron├│mia', u'http://hvg.hu/rss/gasztronomia')
  33.              ,(u'Helyi ├⌐rt├⌐k', u'http://hvg.hu/rss/helyiertek')
  34.              ,(u'Kult├║ra', u'http://hvg.hu/rss/kultura')
  35.              ,(u'C├⌐gaut├│', u'http://hvg.hu/rss/cegauto')
  36.              ,(u'V├íllalkoz├│ szellem', u'http://hvg.hu/rss/kkv')
  37.              ,(u'Eg├⌐szs├⌐g', u'http://hvg.hu/rss/egeszseg')
  38.              ,(u'V├⌐lem├⌐ny', u'http://hvg.hu/rss/velemeny')
  39.              ,(u'Sport', u'http://hvg.hu/rss/sport')
  40.             ]
  41.  
  42.     def print_version(self, url):
  43.         return url.replace ('#rss', '/print')
  44.  
  45.