mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Business Spectator
This commit is contained in:
parent
b232ce0bae
commit
ba22a7a5ca
@ -16,6 +16,7 @@ class BusinessSpectator(BasicNewsRecipe):
|
|||||||
oldest_article = 2
|
oldest_article = 2
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
|
auto_cleanup = True
|
||||||
#delay = 1
|
#delay = 1
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
encoding = 'utf8'
|
encoding = 'utf8'
|
||||||
@ -32,11 +33,11 @@ class BusinessSpectator(BasicNewsRecipe):
|
|||||||
,'linearize_tables': False
|
,'linearize_tables': False
|
||||||
}
|
}
|
||||||
|
|
||||||
keep_only_tags = [dict(id='storyHeader'), dict(id='body-html')]
|
#keep_only_tags = [dict(id='storyHeader'), dict(id='body-html')]
|
||||||
|
|
||||||
remove_tags = [dict(attrs={'class':'hql'})]
|
#remove_tags = [dict(attrs={'class':'hql'})]
|
||||||
|
|
||||||
remove_attributes = ['width','height','style']
|
#remove_attributes = ['width','height','style']
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
('Top Stories', 'http://www.businessspectator.com.au/top-stories.rss'),
|
('Top Stories', 'http://www.businessspectator.com.au/top-stories.rss'),
|
||||||
@ -46,3 +47,4 @@ class BusinessSpectator(BasicNewsRecipe):
|
|||||||
('Daily Dossier', 'http://www.businessspectator.com.au/bs.nsf/RSS?readform&type=kgb&cat=dossier'),
|
('Daily Dossier', 'http://www.businessspectator.com.au/bs.nsf/RSS?readform&type=kgb&cat=dossier'),
|
||||||
('Australia', 'http://www.businessspectator.com.au/bs.nsf/RSS?readform&type=region&cat=australia'),
|
('Australia', 'http://www.businessspectator.com.au/bs.nsf/RSS?readform&type=region&cat=australia'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user