Fix #7228 (The Economic Times of India - News Headers are missing)

This commit is contained in:
Kovid Goyal 2010-10-21 07:49:13 -07:00
parent 8f371fdd4f
commit 506cd50dd1

View File

@ -21,8 +21,9 @@ class TheEconomicTimes(BasicNewsRecipe):
language = 'en_IN' language = 'en_IN'
publication_type = 'newspaper' publication_type = 'newspaper'
masthead_url = 'http://economictimes.indiatimes.com/photo/2676871.cms' masthead_url = 'http://economictimes.indiatimes.com/photo/2676871.cms'
extra_css = """ body{font-family: Arial,Helvetica,sans-serif} extra_css = """
.heading1{font-size: xx-large; font-weight: bold} """ body{font-family: Arial,Helvetica,sans-serif}
"""
conversion_options = { conversion_options = {
'comment' : description 'comment' : description
@ -31,8 +32,9 @@ class TheEconomicTimes(BasicNewsRecipe):
, 'language' : language , 'language' : language
} }
keep_only_tags = [dict(attrs={'class':['heading1','headingnext','Normal']})] keep_only_tags = [dict(attrs={'class':'printdiv'})]
remove_tags = [dict(name=['object','link','embed','iframe','base','table','meta'])] remove_tags = [dict(name=['object','link','embed','iframe','base','table','meta'])]
remove_attributes = ['name']
feeds = [(u'All articles', u'http://economictimes.indiatimes.com/rssfeedsdefault.cms')] feeds = [(u'All articles', u'http://economictimes.indiatimes.com/rssfeedsdefault.cms')]