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

  1. from calibre.web.feeds.news import BasicNewsRecipe
  2.  
  3. class AdvancedUserRecipe1290412756(BasicNewsRecipe):
  4.     __author__ = 'Anat R.'
  5.     title          = u'Matichon'
  6.     oldest_article = 7
  7.     language = 'th'
  8.     max_articles_per_feed = 100
  9.     no_stylesheets = True
  10.     remove_javascript = True
  11.     use_embedded_content = False
  12.     feeds          = [(u'News', u'http://www.matichon.co.th/rss/news_article.xml'),
  13.     (u'Columns', u'http://www.matichon.co.th/rss/news_columns.xml'),
  14.     (u'Politics', u'http://www.matichon.co.th/rss/news_politic.xml'),
  15.     (u'Business', u'http://www.matichon.co.th/rss/news_business.xml'),
  16.     (u'World', u'http://www.matichon.co.th/rss/news_world.xml'),
  17.     (u'Sports', u'http://www.matichon.co.th/rss/news_sport.xml'),
  18.     (u'Entertainment', u'http://www.matichon.co.th/rss/news_entertainment.xml')]
  19.     keep_only_tags = []
  20.     keep_only_tags.append(dict(name = 'h3', attrs = {'class' : 'read-h'}))
  21.     keep_only_tags.append(dict(name = 'p', attrs = {'class' : 'read-time'}))
  22.     keep_only_tags.append(dict(name = 'div', attrs = {'class' : 'news-content'}))
  23.