Fix American Spectator

This commit is contained in:
Kovid Goyal 2011-09-29 09:58:39 -06:00
parent 1ff5c05aaa
commit d27fc5a06e

View File

@ -18,6 +18,8 @@ class TheAmericanSpectator(BasicNewsRecipe):
use_embedded_content = False
language = 'en'
INDEX = 'http://spectator.org'
auto_cleanup = True
encoding = 'utf-8'
conversion_options = {
'comments' : description
@ -26,17 +28,6 @@ class TheAmericanSpectator(BasicNewsRecipe):
,'publisher' : publisher
}
keep_only_tags = [
dict(name='div', attrs={'class':'post inner'})
,dict(name='div', attrs={'class':'author-bio'})
]
remove_tags = [
dict(name='object')
,dict(name='div', attrs={'class':['col3','post-options','social']})
,dict(name='p' , attrs={'class':['letter-editor','meta']})
]
feeds = [ (u'Articles', u'http://feeds.feedburner.com/amspecarticles')]
def get_cover_url(self):