mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
33 lines
876 B
Python
33 lines
876 B
Python
#!/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 = 2
|
|
max_articles_per_feed = 100
|
|
__author__ = 'Bruce'
|
|
description = 'News from Singapore Press Holdings Portal'
|
|
no_stylesheets = False
|
|
language = 'en_SG'
|
|
remove_javascript = True
|
|
remove_tags = [dict(name='span', attrs={'class': 'footer'})]
|
|
keep_only_tags = [
|
|
dict(name='h1', attrs={'class': 'headline'}),
|
|
dict(name='div', attrs={
|
|
'class': ['article-content', 'person-info row']})
|
|
]
|
|
|
|
feeds = [
|
|
('Singapore', 'http://asiaone.feedsportal.com/c/34151/f/618415/index.rss'),
|
|
('Asia', 'http://asiaone.feedsportal.com/c/34151/f/618416/index.rss')
|
|
|
|
]
|