mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update Science Daily
Fixes #1340201 [Updated recipe for ScienceDaily](https://bugs.launchpad.net/calibre/+bug/1340201)
This commit is contained in:
parent
24ece4a0c2
commit
ce72dcb64b
@ -14,7 +14,7 @@ class ScienceDaily(BasicNewsRecipe):
|
|||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
language = 'en'
|
language = 'en'
|
||||||
|
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 150
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
|
|
||||||
@ -24,11 +24,13 @@ class ScienceDaily(BasicNewsRecipe):
|
|||||||
dict(name='h1', attrs={'class':'story'})
|
dict(name='h1', attrs={'class':'story'})
|
||||||
,dict(name='div', attrs={'id':'story'})
|
,dict(name='div', attrs={'id':'story'})
|
||||||
]
|
]
|
||||||
|
# @@@ float: righr; width: 500px (wtf)
|
||||||
remove_tags_after = dict(name='div', attrs={'id':'citationbox'})
|
remove_attributes = ['style', 'width']
|
||||||
|
remove_tags_after = dict(name='div', attrs={'id':'citations'})
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name='div', attrs={'id':'seealso'})
|
dict(name='div', attrs={'id':'sharing'})
|
||||||
,dict(name='div', attrs={'id':'citationbox'})
|
,dict(name='div', attrs={'id':'citations'})
|
||||||
|
,dict(name='div', attrs={'class':'overlay'})
|
||||||
]
|
]
|
||||||
|
|
||||||
feeds = [(u"ScienceDaily", u'http://www.sciencedaily.com/newsfeed.xml')]
|
feeds = [(u"ScienceDaily", u'http://www.sciencedaily.com/newsfeed.xml')]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user