Debian Codegraph @

recipes/glasgow_herald.recipe

raw
1 #!/usr/bin/env python
2 # vim:fileencoding=utf-8
3 # License: GPLv3 Copyright: 2015, Kovid Goyal <kovid at kovidgoyal.net>
4
5 from __future__ import absolute_import, division, print_function, unicode_literals
6
7 from calibre.web.feeds.news import BasicNewsRecipe
8
9
10 class GlasgowHerald(BasicNewsRecipe):
11 title = 'Glasgow Herald'
12 oldest_article = 1
13 max_articles_per_feed = 100
14 language = 'en_GB'
15
16 __author__ = 'Kovid Goyal'
17 use_embedded_content = False
18
19 no_stylesheets = True
20 auto_cleanup = True
21
22 feeds = [
23 ('News', 'https://www.heraldscotland.com/news/rss/'),
24 ('Sport', 'https://www.heraldscotland.com/sport/rss/'),
25 ('Business', 'https://www.heraldscotland.com/business_hq/rss/'),
26 ('Lifestyle', 'https://www.heraldscotland.com/life_style/rss/'),
27 (
28 'Arts & Entertainment',
29 'https://www.heraldscotland.com/arts_ents/rss/',
30 ),
31 ('Politics', 'https://www.heraldscotland.com/politics/rss/'),
32 ('Columnists', 'https://www.heraldscotland.com/opinion/columnists/rss/'),
33 ]