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

  1. __license__   = 'GPL v3'
  2. __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
  3.  
  4. '''
  5. Fetch darknet.
  6. '''
  7.  
  8. from calibre.web.feeds.news import BasicNewsRecipe
  9.  
  10.  
  11. class darknet(BasicNewsRecipe):
  12.  
  13.     title = 'darknet'
  14.     description = 'Ethical hacking and security news'
  15.     __author__ = 'Oliver Niesner'
  16.     language = 'en'
  17.  
  18.     use_embedded_content   = False
  19.     timefmt = ' [%b %d %Y]'
  20.     max_articles_per_feed = 40
  21.     no_stylesheets = True
  22.     oldest_article = 180
  23.  
  24.     remove_tags = [dict(id='navi_top'),
  25.            dict(id='navi_bottom'),
  26.            dict(id='nav'),
  27.            dict(id='top-ad'),
  28.            dict(id='login_suche'),
  29.            dict(id='navi_login'),
  30.            dict(id='breadcrumb'),
  31.            dict(id='subtitle'),
  32.            dict(id='bannerzone'),
  33.            dict(name='span', attrs={'class':'rsaquo'}),
  34.            dict(name='span', attrs={'class':'next'}),
  35.            dict(name='span', attrs={'class':'prev'}),
  36.            dict(name='span', attrs={'class':'comments'}),
  37.            dict(name='div', attrs={'class':'news_logo'}),
  38.            dict(name='div', attrs={'class':'nextprev'}),
  39.            dict(name='div', attrs={'class':'tags'}),
  40.            dict(name='div', attrs={'class':'Nav'}),
  41.            dict(name='p', attrs={'class':'news_option'}),
  42.            dict(name='p', attrs={'class':'news_foren'})]
  43.     remove_tags_after = [dict(name='div', attrs={'class':'meta-footer'})]
  44.  
  45.     feeds =  [ ('darknet', 'http://feedproxy.google.com/darknethackers') ]
  46.  
  47.