Debian Codegraph @

recipes/new_statesman.recipe

raw
1 # -*- mode: python -*-
2 # -*- coding: utf-8 -*-
3
4 __license__ = 'GPL v3'
5 __copyright__ = '2018, Darko Miletic <darko.miletic at gmail.com>'
6 '''
7 www.newstatesman.com
8 '''
9
10 from calibre.web.feeds.news import BasicNewsRecipe
11
12
13 class NewStatesman(BasicNewsRecipe):
14 title = 'New Statesman'
15 __author__ = 'Darko Miletic'
16 description = "Current affairs, world politics, the arts and more from Britain's award-winning magazine"
17 publisher = 'New Statesman Media'
18 category = 'New Statesman magazine, International Politics, British Politics, Britain, UK, Tony Blair, Gordon Brown, Geoffrey Robinson, David Cameron, Sir Menzies Campbell, Labour, Conservative, Liberal Democrat, UK Politics, House of Commons, House of Lords, Legislation, politics magazine' # noqa: E501
19 oldest_article = 30
20 no_stylesheets = True
21 encoding = 'utf8'
22 use_embedded_content = True
23 language = 'en_GB'
24 remove_empty_feeds = True
25 publication_type = 'magazine'
26 auto_cleanup = True
27 resolve_internal_links = True
28 ignore_duplicate_articles = {'url'}
29 masthead_url = 'https://www.newstatesman.com/sites/all/themes/creative-responsive-theme/images/[email protected]'
30
31 extra_css = '''
32 body{font-family: serif}
33 img{margin-top:1em; margin-bottom: 1em; display:block}
34 '''
35
36 conversion_options = {'comment': description, 'tags': category, 'publisher': publisher, 'language': language}
37
38 feeds = [('Articles', 'https://www.newstatesman.com/feed')]