calibre/recipes/asia_one.recipe
Kovid Goyal 29cd8d64ea
Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30

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')
]