home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / novinky.recipe < prev    next >
Text File  |  2011-09-09  |  2KB  |  44 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 NovinkyCZ(BasicNewsRecipe):
  7.     title                   = 'Novinky'
  8.     __author__              = 'Tomas Latal'
  9.     __version__             = '1.1'
  10.     __date__                = '30 April 2011'
  11.     description             = 'News from server Novinky.cz'
  12.     oldest_article          = 1
  13.     max_articles_per_feed   = 10
  14.     encoding                = 'utf8'
  15.     publisher               = 'Novinky'
  16.     category                = 'news, CZ'
  17.     language                = 'cs'
  18.     publication_type        = 'newsportal'
  19.     no_stylesheets          = True
  20.     remove_javascript       = True
  21.     cover_url               = 'http://img193.imageshack.us/img193/3039/novinkycover.jpg'
  22.     extra_css               = 'p.acmDescription{font-style:italic;} p.acmAuthor{font-size:0.8em; color:#707070}'
  23.  
  24.     feeds          = [
  25.                         (u'Dom\xe1c\xed', u'http://www.novinky.cz/rss/domaci/'),
  26.                         (u'Zahrani\u010d\xed', u'http://www.novinky.cz/rss/zahranicni/'),
  27.                         (u'Krimi', u'http://www.novinky.cz/rss/krimi/'),
  28.                         (u'Ekonomika', u'http://www.novinky.cz/rss/ekonomika/'),
  29.                         (u'Finance', u'http://www.novinky.cz/rss/finance/'),
  30.                         (u'Kultura', u'http://www.novinky.cz/rss/kultura/'),
  31.                         (u'Koktejl', u'http://www.novinky.cz/rss/koktejl/'),
  32.                         (u'Internet a PC', u'http://www.novinky.cz/rss/internet-a-pc/'),
  33.                         (u'Auto-moto', u'http://www.novinky.cz/rss/auto/'),
  34.                     ]
  35.  
  36.     remove_tags_before = dict(id='articleContent')
  37.  
  38.     remove_tags_after = [dict(id='movedArticleAuthors')]
  39.  
  40.     remove_tags = [
  41.                       dict(name='div', attrs={'id':['articleColumnInfo','pictureInnerBox']}),
  42.                       dict(name='p', attrs={'id':['articleDate']})
  43.                   ]
  44.