Fix #906143 (News Recipe Problem: Glasgow Herald)

This commit is contained in:
Kovid Goyal 2011-12-19 12:39:57 +05:30
parent ac67f9e3f6
commit 0ad159b8b1

View File

@ -1,4 +1,3 @@
from calibre.web.feeds.news import BasicNewsRecipe from calibre.web.feeds.news import BasicNewsRecipe
class GlasgowHerald(BasicNewsRecipe): class GlasgowHerald(BasicNewsRecipe):
@ -9,12 +8,16 @@ class GlasgowHerald(BasicNewsRecipe):
language = 'en_GB' language = 'en_GB'
__author__ = 'Kovid Goyal' __author__ = 'Kovid Goyal'
use_embedded_content = False
keep_only_tags = [dict(attrs={'class':'article'})] no_stylesheets = True
remove_tags = [ auto_cleanup = True
dict(id=['pic-nav']),
dict(attrs={'class':['comments-top']}) #keep_only_tags = [dict(attrs={'class':'article'})]
] #remove_tags = [
#dict(id=['pic-nav']),
#dict(attrs={'class':['comments-top']})
#]
feeds = [ feeds = [
@ -25,5 +28,4 @@ class GlasgowHerald(BasicNewsRecipe):
(u'Arts & Entertainment', (u'Arts & Entertainment',
u'http://www.heraldscotland.com/cmlink/1.768',), u'http://www.heraldscotland.com/cmlink/1.768',),
(u'Columnists', u'http://www.heraldscotland.com/cmlink/1.658574')] (u'Columnists', u'http://www.heraldscotland.com/cmlink/1.658574')]