Update Science Daily

Fixes #1340201 [Updated recipe for ScienceDaily](https://bugs.launchpad.net/calibre/+bug/1340201)
This commit is contained in:
Kovid Goyal 2014-07-10 20:12:04 +05:30
parent 24ece4a0c2
commit ce72dcb64b

View File

@ -14,21 +14,23 @@ class ScienceDaily(BasicNewsRecipe):
oldest_article = 7
language = 'en'
max_articles_per_feed = 100
max_articles_per_feed = 150
no_stylesheets = True
use_embedded_content = False
cover_url = 'http://www.sciencedaily.com/images/logo.gif'
keep_only_tags = [
dict(name='h1', attrs={'class':'story'})
,dict(name='div', attrs={'id':'story'})
keep_only_tags = [
dict(name='h1', attrs={'class':'story'})
,dict(name='div', attrs={'id':'story'})
]
remove_tags_after = dict(name='div', attrs={'id':'citationbox'})
# @@@ float: righr; width: 500px (wtf)
remove_attributes = ['style', 'width']
remove_tags_after = dict(name='div', attrs={'id':'citations'})
remove_tags = [
dict(name='div', attrs={'id':'seealso'})
,dict(name='div', attrs={'id':'citationbox'})
dict(name='div', attrs={'id':'sharing'})
,dict(name='div', attrs={'id':'citations'})
,dict(name='div', attrs={'class':'overlay'})
]
feeds = [(u"ScienceDaily", u'http://www.sciencedaily.com/newsfeed.xml')]