mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
37 lines
916 B
Python
37 lines
916 B
Python
#!/usr/bin/env python2
|
|
|
|
__license__ = 'GPL v3'
|
|
__copyright__ = '2008-2009, Darko Miletic <darko.miletic at gmail.com>'
|
|
'''
|
|
www.accountancyage.com
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class AccountancyAge(BasicNewsRecipe):
|
|
title = 'Accountancy Age'
|
|
__author__ = 'Darko Miletic'
|
|
description = 'business news'
|
|
publisher = 'accountancyage.com'
|
|
category = 'news, politics, finances'
|
|
oldest_article = 2
|
|
max_articles_per_feed = 100
|
|
no_stylesheets = True
|
|
use_embedded_content = False
|
|
simultaneous_downloads = 1
|
|
encoding = 'utf-8'
|
|
lang = 'en'
|
|
language = 'en'
|
|
|
|
feeds = [
|
|
(u'All News', u'http://feeds.accountancyage.com/rss/latest/accountancyage/all')]
|
|
|
|
keep_only_tags = [
|
|
dict(name='h1'),
|
|
dict(attrs={'class': 'article_content'}),
|
|
]
|
|
|
|
def get_article_url(self, article):
|
|
return article.get('guid', None)
|