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

  1. #!/usr/bin/env python
  2. # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
  3. from __future__ import with_statement
  4.  
  5. __license__   = 'GPL v3'
  6. __copyright__ = '2009, Kovid Goyal <kovid@kovidgoyal.net>'
  7. __docformat__ = 'restructuredtext en'
  8.  
  9.  
  10. from calibre.web.feeds.news import BasicNewsRecipe
  11.  
  12. class HunMilNews(BasicNewsRecipe):
  13.     title          = u'Honvedelem.hu'
  14.     oldest_article = 3
  15.     description = u'Katonah\xedrek'
  16.     language = 'hu'
  17.  
  18.     lang = 'hu'
  19.     encoding = 'windows-1250'
  20.     category = 'news, military'
  21.  
  22.     no_stylesheets         = True
  23.  
  24.  
  25.     __author__ = 'Devilinside'
  26.     max_articles_per_feed = 16
  27.     no_stylesheets = True
  28.  
  29.  
  30.  
  31.     keep_only_tags = [dict(name='div', attrs={'class':'cikkoldal_cikk_cim'}),
  32.  dict(name='div', attrs={'class':'cikkoldal_cikk_alcim'}),
  33.  dict(name='div', attrs={'class':'cikkoldal_datum'}),
  34.  dict(name='div', attrs={'class':'cikkoldal_lead'}),
  35.  dict(name='div', attrs={'class':'cikkoldal_szoveg'}),
  36.  dict(name='img', attrs={'class':'ajanlo_kep_keretes'}),
  37.         ]
  38.  
  39.  
  40.  
  41.     feeds          = [(u'Misszi\xf3k', u'http://www.honvedelem.hu/rss_b?c=22'),
  42.  (u'Aktu\xe1lis hazai h\xedrek', u'http://www.honvedelem.hu/rss_b?c=3'),
  43.  (u'K\xfclf\xf6ldi h\xedrek', u'http://www.honvedelem.hu/rss_b?c=4'),
  44.  (u'A h\xf3nap t\xe9m\xe1ja', u'http://www.honvedelem.hu/rss_b?c=6'),
  45.  (u'Riport', u'http://www.honvedelem.hu/rss_b?c=5'),
  46.  (u'Portr\xe9k', u'http://www.honvedelem.hu/rss_b?c=7'),
  47.  (u'Haditechnika', u'http://www.honvedelem.hu/rss_b?c=8'),
  48.  (u'Programok, esem\xe9nyek', u'http://www.honvedelem.hu/rss_b?c=12')
  49.         ]
  50.  
  51.