Update The Onion

This commit is contained in:
Kovid Goyal 2015-01-21 22:27:33 +05:30
parent 589c719dc6
commit 8a62bc3860

View File

@ -43,12 +43,12 @@ class TheOnion(BasicNewsRecipe):
remove_tags = [ remove_tags = [
dict(name=['object','link','iframe','base','meta']) dict(name=['object','link','iframe','base','meta'])
,dict(attrs={'class':lambda x: x and 'share-tools' in x.split()}) ,dict(attrs={'class':lambda x: x and 'share-tools' in x.split()})
,dict(name='div', attrs={'id':['topshare', 'bottomshare']})
] ]
feeds = [ feeds = [
(u'Daily' , u'http://feeds.theonion.com/theonion/daily' ) (u'Daily' , u'http://feeds.theonion.com/theonion/daily')
,(u'Sports' , u'http://feeds.theonion.com/theonion/sports' ) ,(u'Sports' , u'http://feeds.theonion.com/theonion/sports')
] ]
def get_browser(self): def get_browser(self):
@ -89,4 +89,3 @@ class TheOnion(BasicNewsRecipe):
if item.has_key('data-src'): if item.has_key('data-src'):
item['src'] = item['data-src'] item['src'] = item['data-src']
return soup return soup