calibre/recipes/tpm_uk.recipe
Kovid Goyal 96d3145ca5 Update The Philosopher's Magazine
Fixes #1495383 [Fetch News: The Philosopers' Magazine doesn't download](https://bugs.launchpad.net/calibre/+bug/1495383)
2015-09-30 08:09:44 +05:30

41 lines
1.5 KiB
Plaintext

__license__ = 'GPL v3'
__copyright__ = '2010-2015, Darko Miletic <darko.miletic at gmail.com>'
'''
www.philosophersmag.com
'''
from calibre.web.feeds.news import BasicNewsRecipe
class TPM_uk(BasicNewsRecipe):
title = "The Philosophers' Magazine"
__author__ = 'Darko Miletic'
description = 'Title says it all'
publisher = "The Philosophers' Magazine"
category = 'philosophy, news'
oldest_article = 80
max_articles_per_feed = 200
no_stylesheets = True
encoding = 'utf8'
use_embedded_content = False
language = 'en_GB'
remove_empty_feeds = True
publication_type = 'magazine'
extra_css = """
body{font-family: Raleway,sans-serif }
"""
conversion_options = {
'comment' : description
, 'tags' : category
, 'publisher' : publisher
, 'language' : language
}
remove_tags = [dict(name=['meta','link','base','iframe','embed','object','img'])]
keep_only_tags = [dict(attrs={'class':['article-title','article-content']})]
feeds = [
(u'Articles' , u'http://www.philosophersmag.com/index.php/tpm-mag-articles?format=feed&type=rss')
,(u'Reflections', u'http://www.philosophersmag.com/index.php/reflections?format=feed&type=rss' )
]