mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-07 09:01:38 -04:00
Fix #7152 (Business Standard)
This commit is contained in:
parent
4c49384670
commit
ebecf86916
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
|
__copyright__ = '2009-2010, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
'''
|
'''
|
||||||
www.business-standard.com
|
www.business-standard.com
|
||||||
'''
|
'''
|
||||||
@ -28,30 +26,22 @@ class BusinessStandard(BasicNewsRecipe):
|
|||||||
,'publisher' : publisher
|
,'publisher' : publisher
|
||||||
,'linearize_tables': True
|
,'linearize_tables': True
|
||||||
}
|
}
|
||||||
|
keep_only_tags=[dict(attrs={'class':'TableClas'})]
|
||||||
remove_attributes=['style']
|
remove_tags = [
|
||||||
remove_tags = [dict(name=['object','link','script','iframe'])]
|
dict(name=['object','link','script','iframe','base','meta'])
|
||||||
|
,dict(attrs={'class':'rightDiv2'})
|
||||||
|
,dict(name='table',attrs={'width':'450px'})
|
||||||
|
]
|
||||||
|
remove_attributes=['width','height']
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
(u'News Now' , u'http://feeds.business-standard.com/News-Now.xml' )
|
(u'News Now' , u'http://feeds.business-standard.com/rss/online.xml')
|
||||||
,(u'Banking & finance' , u'http://feeds.business-standard.com/Banking-Finance-All.xml' )
|
,(u'Banking & finance' , u'http://feeds.business-standard.com/rss/3_0.xml' )
|
||||||
,(u'Companies & Industry', u'http://feeds.business-standard.com/Companies-Industry-All.xml')
|
,(u'Companies & Industry', u'http://feeds.business-standard.com/rss/2_0.xml' )
|
||||||
,(u'Economy & Policy' , u'http://feeds.business-standard.com/Economy-Policy-All.xml' )
|
,(u'Economy & Policy' , u'http://feeds.business-standard.com/rss/4_0.xml' )
|
||||||
,(u'Tech World' , u'http://feeds.business-standard.com/Tech-World-All.xml' )
|
,(u'Tech World' , u'http://feeds.business-standard.com/rss/8_0.xml' )
|
||||||
,(u'Life & Leisure' , u'http://feeds.business-standard.com/Life-Leisure-All.xml' )
|
,(u'Life & Leisure' , u'http://feeds.business-standard.com/rss/6_0.xml' )
|
||||||
,(u'Markets & Investing' , u'http://feeds.business-standard.com/Markets-Investing-All.xml' )
|
,(u'Markets & Investing' , u'http://feeds.business-standard.com/rss/1_0.xml' )
|
||||||
,(u'Management & Mktg' , u'http://feeds.business-standard.com/Management-Mktg-All.xml' )
|
,(u'Management & Mktg' , u'http://feeds.business-standard.com/rss/7_0.xml' )
|
||||||
,(u'Automobiles' , u'http://feeds.business-standard.com/Automobiles.xml' )
|
,(u'Opinion' , u'http://feeds.business-standard.com/rss/5_0.xml' )
|
||||||
,(u'Aviation' , u'http://feeds.business-standard.com/Aviation.xml' )
|
|
||||||
]
|
]
|
||||||
|
|
||||||
def print_version(self, url):
|
|
||||||
autono = url.rpartition('autono=')[2]
|
|
||||||
tp = 'on'
|
|
||||||
hk = url.rpartition('bKeyFlag=')[1]
|
|
||||||
if hk == '':
|
|
||||||
tp = ''
|
|
||||||
return 'http://www.business-standard.com/india/printpage.php?autono=' + autono + '&tp=' + tp
|
|
||||||
|
|
||||||
def get_article_url(self, article):
|
|
||||||
return article.get('guid', None)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user