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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2011, Tomas Latal<latal.tomas at gmail.com>'
  3.  
  4. from calibre.web.feeds.news import BasicNewsRecipe
  5.  
  6. class MesecCZ(BasicNewsRecipe):
  7.     title                   =  u'M\u011b\u0161ec'
  8.     __author__              = 'Tomas Latal'
  9.     __version__             = '1.0'
  10.     __date__                = '30 April 2011'
  11.     description             = u'Zpr\xe1vi\u010dky a \u010dl\xe1nky z Mesec.cz'
  12.     oldest_article          = 1
  13.     max_articles_per_feed   = 10
  14.     encoding                = 'utf8'
  15.     publisher               = 'Internet Info s.r.o.'
  16.     category                = 'finance,CZ'
  17.     language                = 'cs'
  18.     publication_type        = 'newsportal'
  19.     no_stylesheets          = True
  20.     remove_javascript       = True
  21.     extra_css               = 'p.perex{font-size: 1.2em;margin: 0 0 10px 0;line-height: 1.4;padding: 0 0 10px 0;font-weight: bold;} \
  22.                                p.perex img {display:none;} \
  23.                                .urs p {margin: 0 0 0.8em 0;}'
  24.  
  25.     feeds          = [
  26.                         (u'Aktuality', u'http://www.mesec.cz/rss/aktuality/'),
  27.                         (u'\u010cl\xe1nky', u'http://www.mesec.cz/rss/clanky/')
  28.                     ]
  29.  
  30.     remove_tags_before = dict(id='main')
  31.  
  32.     remove_tags_after = [dict(id='main')]
  33.  
  34.     remove_tags = [
  35.                     dict(attrs={'class':['author clear','tags-rubrics','box border style1 links clear','enquiry clear','serial','box border style1 TitleList','breadcrumb clear','article-discussion box border style1 monitoringComponentArticle','link-more border prev-next clear']}),
  36.                     dict(id=['discussionList','similarItems','sidebar','footer','opl','promo-box'])
  37.                   ]
  38.