mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class GlasgowHerald(BasicNewsRecipe):
|
|
title = u'Glasgow Herald'
|
|
oldest_article = 1
|
|
max_articles_per_feed = 100
|
|
no_stylesheets = True
|
|
language = 'en_GB'
|
|
|
|
__author__ = 'Kovid Goyal'
|
|
|
|
keep_only_tags = [dict(attrs={'class':'article'})]
|
|
remove_tags = [
|
|
dict(id=['pic-nav']),
|
|
dict(attrs={'class':['comments-top']})
|
|
]
|
|
|
|
|
|
feeds = [
|
|
(u'News', u'http://www.heraldscotland.com/cmlink/1.758'),
|
|
(u'Sport', u'http://www.heraldscotland.com/cmlink/1.761'),
|
|
(u'Business', u'http://www.heraldscotland.com/cmlink/1.763'),
|
|
(u'Life & Style', u'http://www.heraldscotland.com/cmlink/1.770'),
|
|
(u'Arts & Entertainment',
|
|
u'http://www.heraldscotland.com/cmlink/1.768',),
|
|
(u'Columnists', u'http://www.heraldscotland.com/cmlink/1.658574')]
|
|
|
|
|