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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1290689337(BasicNewsRecipe):
  4.     __author__ = 'Anat R.'
  5.     language = 'th'
  6.     title          = u'Bangkok Biz News'
  7.     oldest_article = 7
  8.     max_articles_per_feed = 100
  9.     no_stylesheets = True
  10.     remove_javascript = True
  11.     use_embedded_content = False
  12.     feeds          = [(u'Headlines',
  13.     u'http://www.bangkokbiznews.com/home/services/rss/home.xml'),
  14.     (u'Politics', u'http://www.bangkokbiznews.com/home/services/rss/politics.xml'),
  15.     (u'Business', u'http://www.bangkokbiznews.com/home/services/rss/business.xml'),
  16.     (u'Finance', u' http://www.bangkokbiznews.com/home/services/rss/finance.xml'),
  17.     (u'Technology', u' http://www.bangkokbiznews.com/home/services/rss/it.xml')]
  18.     remove_tags_before  = dict(name='div', attrs={'class':'box-Detailcontent'})
  19.     remove_tags_after = dict(name='p', attrs={'class':'allTags'})
  20.     remove_tags = []
  21.     remove_tags.append(dict(name = 'div', attrs = {'id': 'content-tools'}))
  22.     remove_tags.append(dict(name = 'p', attrs = {'class':'allTags'}))
  23.     remove_tags.append(dict(name = 'div', attrs = {'id':'morePic'}))
  24.     remove_tags.append(dict(name = 'ul', attrs = {'class':'tabs-nav'}))
  25.  
  26.