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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class PilotOnline(BasicNewsRecipe):
  4.     title          = u'Pilot Online'
  5.     language       = 'en'
  6.     __author__     = 'Krittika Goyal'
  7.     oldest_article = 120 #days
  8.     max_articles_per_feed = 25
  9.  
  10.  
  11.     no_stylesheets = True
  12.     remove_tags_before = dict(name='div', attrs={'id':'wrapper'})
  13.     #remove_tags_after  = dict(name='td', attrs={'class':'asset-bar'})
  14.     remove_tags = [
  15.        dict(name='iframe'),
  16.        dict(name='div', attrs={'class':['breadcrumb', 'asset-bar', 'footerLogos', 'footerLinks', 'lefty', 'righty', 'last', 'subFooter', 'footerLinks-last', 'comment clear-block', 'box', 'related', ]}),
  17.        dict(name='div', attrs={'id':['rightColumn']}),
  18.        dict(name='span', attrs={'class':'comment_forbidden'}),
  19.        dict(name='ul', attrs={'class':'links inline'}),
  20.        dict(name='p', attrs={'id':'commentadvisory'}),
  21.        dict(name='div', attrs={'style':['width: 300px; margin-right: 2em; float: left;']}),
  22.        dict(name='div', style="float:right; width: 300px;"),
  23.        dict(name='p', style="clear:both;"),
  24.        #dict(name='p', attrs={'name':'&lpos=footer_textlinks'}),
  25.        dict(name='span', text=':'),
  26.     ]
  27.  
  28.     feeds          = [
  29. ('Hampton Roads',
  30.  'http://hamptonroads.com/taxterm/11'),
  31.  'http://hamptonroads.com/taxterm/12',
  32.  'http://hamptonroads.com/taxterm/222',
  33.  'http://hamptonroads.com/taxterm/224',
  34.  'http://hamptonroads.com/taxterm/226',
  35.  'http://hamptonroads.com/taxterm/3',
  36.  'http://hamptonroads.com/taxterm/149',
  37.  'http://hamptonroads.com/taxterm/228',
  38.  'http://hamptonroads.com/taxterm/4',
  39.  'http://hamptonroads.com/taxterm/522',
  40.  'http://hamptonroads.com/taxterm/420',
  41.  'http://hamptonroads.com/taxterm/227',
  42.  'http://hamptonroads.com/taxterm/231',
  43.  'http://hamptonroads.com/taxterm/232',
  44. ]
  45.  
  46.