Read AsiaOne on your iPad or Kindle in no time. Click download to load the free ebook on your reader.
Check out all the available public recipes or write your own with these quick start guides. ReadBeam is built on calibre, so everything in the docs and the fora applies here as well.
News from Singapore Press Holdings Portal
Language: en
Requires Subscription: No, it's available as free ebook
Schedule Every morning
#!/usr/bin/env python
__license__ = 'GPL v3'
__copyright__ = '2009, Bruce <bruce at dotdoh.com>'
'''
asiaone.com
'''
from calibre.web.feeds.news import BasicNewsRecipe
class AsiaOne(BasicNewsRecipe):
title = u'AsiaOne'
oldest_article = 3
max_articles_per_feed = 100
__author__ = 'Bruce'
description = 'News from Singapore Press Holdings Portal'
no_stylesheets = False
language = 'en_SG'
remove_tags = [dict(name='span', attrs={'class':'footer'})]
keep_only_tags = [dict(name=['span', 'p', 'br', 'b', 'i', 'hr'])]
feeds = [
('News', 'http://www.asiaone.com/a1mborss/News.xml'),
('Business', 'http://www.asiaone.com/a1mborss/Business.xml'),
('Education', 'http://www.asiaone.com/a1mborss/Education.xml'),
('Health', 'http://www.asiaone.com/a1mborss/Health.xml'),
('Digital', 'http://www.asiaone.com/a1mborss/Digital.xml'),
]
def print_version(self, url):
return url.replace('http://www.asiaone.com/', 'http://www.asiaone.com/print/')