__license__ = 'GPL v3' __copyright__ = '2010, Darko Miletic ' ''' www.nst.com.my ''' from calibre.web.feeds.news import BasicNewsRecipe class Newstraitstimes(BasicNewsRecipe): title = 'New Straits Times from Malaysia' __author__ = 'Darko Miletic' description = 'Learning Curve, Sunday People, New Straits Times from Malaysia' publisher = 'nst.com.my' category = 'news, politics, Malaysia' oldest_article = 2 max_articles_per_feed = 100 no_stylesheets = True encoding = 'cp1252' use_embedded_content = False language = 'en' masthead_url = 'http://www.nst.com.my/Current_News/NST/Images/new-nstonline.jpg' conversion_options = { 'comment' : description , 'tags' : category , 'publisher' : publisher , 'language' : language } remove_tags = [dict(name=['link','table'])] keep_only_tags = dict(name='div',attrs={'id':'haidah'}) feeds = [(u'Articles', u'http://www.nst.com.my/rss/allSec')]