mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update CNet News
This commit is contained in:
parent
8fdcba2524
commit
e5628d76af
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
|
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
'''
|
'''
|
||||||
@ -7,6 +6,8 @@ Changelog:
|
|||||||
Changed cover (drMerry)
|
Changed cover (drMerry)
|
||||||
2011-10-13
|
2011-10-13
|
||||||
Updated Cover (drMerry)
|
Updated Cover (drMerry)
|
||||||
|
2014-03-28
|
||||||
|
Update by Armin Geller
|
||||||
news.cnet.com
|
news.cnet.com
|
||||||
'''
|
'''
|
||||||
|
|
||||||
@ -18,13 +19,13 @@ class CnetNews(BasicNewsRecipe):
|
|||||||
description = 'Tech news and business reports by CNET News. Focused on information technology, core topics include computers, hardware, software, networking, and Internet media.'
|
description = 'Tech news and business reports by CNET News. Focused on information technology, core topics include computers, hardware, software, networking, and Internet media.'
|
||||||
publisher = 'CNET'
|
publisher = 'CNET'
|
||||||
category = 'news, IT, USA'
|
category = 'news, IT, USA'
|
||||||
oldest_article = 2
|
encoding = 'utf-8' # AGe 2014-03-28
|
||||||
|
language = 'en' # AGe 2014-03-28
|
||||||
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
no_stylesheets = True
|
|
||||||
encoding = 'cp1252'
|
|
||||||
use_embedded_content = False
|
|
||||||
language = 'en'
|
|
||||||
cover_url = 'http://reviews.cnet.com/i/ff/wp/logo_cnet.gif'
|
cover_url = 'http://reviews.cnet.com/i/ff/wp/logo_cnet.gif'
|
||||||
|
|
||||||
conversion_options = {
|
conversion_options = {
|
||||||
'comment' : description
|
'comment' : description
|
||||||
, 'tags' : category
|
, 'tags' : category
|
||||||
@ -32,17 +33,15 @@ class CnetNews(BasicNewsRecipe):
|
|||||||
, 'language' : language
|
, 'language' : language
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [ # AGe 2014-03-28, new
|
||||||
dict(name='div', attrs={'id':'tweetmemeAndFacebook'})
|
dict(name='div', attrs={'class':'row controls'}),
|
||||||
,dict(name='ul', attrs={'class':'contentTools'})
|
dict(name='ul', attrs={'class':'sharebar inline-view'}),
|
||||||
,dict(name='aside', attrs={'id':'filed'})
|
dict(name='div', attrs={'id':'ob_holder'}),
|
||||||
,dict(name='div', attrs={'class':'postLinks'})
|
dict(name='span', attrs={'class':'author-social'}),
|
||||||
,dict(name='span', attrs={'class':'shareButton'})
|
|
||||||
,dict(name='span', attrs={'class':'printButton'})
|
|
||||||
,dict(name='span', attrs={'class':'emailButton'})
|
|
||||||
,dict(name='div', attrs={'class':'editorBio'})
|
|
||||||
]
|
]
|
||||||
keep_only_tags = dict(name='div', attrs={'class':'post'})
|
|
||||||
|
|
||||||
feeds = [(u'News', u'http://news.cnet.com/2547-1_3-0-20.xml')]
|
keep_only_tags = dict(name='article', attrs={'id':'article-body'}) # AGe 2014-03-28
|
||||||
|
|
||||||
|
feeds = [
|
||||||
|
(u'News', u'http://news.cnet.com/2547-1_3-0-20.xml'),
|
||||||
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user