home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_280 / huntechnet.recipe < prev    next >
Encoding:
Text File  |  2011-09-09  |  1.3 KB  |  42 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. from calibre.web.feeds.news import BasicNewsRecipe
  10.  
  11. class HunTechNet(BasicNewsRecipe):
  12.      title          = u'TechNet'
  13.      oldest_article = 3
  14.      description = u'Az ut\xf3bbi 3 nap TechNet h\xedrei'
  15.      language = 'hu'
  16.  
  17.      lang = 'hu'
  18.      encoding = 'utf-8'
  19.      __author__ = 'Devilinside'
  20.      max_articles_per_feed = 30
  21.      timefmt = ' [%Y, %b %d, %a]'
  22.  
  23.  
  24.  
  25.      
  26.      remove_tags_before = dict(name='div', attrs={'id':'c-main'})
  27.      remove_tags = [dict(name='div', attrs={'class':'wrp clr'}), 
  28.  {'class' : ['screenrdr','forum','print','startlap','text_small','text_normal','text_big','email']},
  29.                                    ]
  30.      keep_only_tags = [dict(name='div', attrs={'class':'cikk_head box'}),dict(name='div', attrs={'class':'cikk_txt box'})]
  31.  
  32.  
  33.  
  34.      feeds          = [(u'C\xedmlap',
  35.  u'http://www.technet.hu/rss/cimoldal/'), (u'TechTud',
  36.  u'http://www.technet.hu/rss/techtud/'), (u'PDA M\xe1nia',
  37.  u'http://www.technet.hu/rss/pdamania/'), (u'Telefon',
  38.  u'http://www.technet.hu/rss/telefon/'), (u'Sz\xe1m\xedt\xf3g\xe9p',
  39.  u'http://www.technet.hu/rss/notebook/'), (u'GPS',
  40.  u'http://www.technet.hu/rss/gps/')]
  41.  
  42.