mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-26 16:25:23 +01:00
Improved PC World (eng)
This commit is contained in:
parent
d4ddc02489
commit
4a574fd945
1 changed files with 3 additions and 4 deletions
|
|
@ -51,14 +51,13 @@ def get_obfuscated_article(self, url):
|
|||
keep_only_tags = [
|
||||
dict(name='div', attrs={'class':'article'})
|
||||
]
|
||||
|
||||
remove_tags = [
|
||||
dict(name='div', attrs={'class':['toolBar','mac_tags','toolBar btmTools','recommend longRecommend','recommend shortRecommend','textAds']}),
|
||||
dict(name='div', attrs={'id':['sidebar','comments','mac_tags']}),
|
||||
dict(name='ul', attrs={'class':'tools'}),
|
||||
dict(name='li', attrs={'class':'sub'})
|
||||
dict(name='ul', attrs={'class':['tools', 'tools clearfix']}),
|
||||
dict(name='li', attrs={'class':'sub'}),
|
||||
dict(name='p', attrs={'id':'userDesire'})
|
||||
]
|
||||
|
||||
feeds = [
|
||||
(u'PCWorld Headlines', u'http://feeds.pcworld.com/pcworld/latestnews'),
|
||||
(u'How-To', u'http://feeds.pcworld.com/pcworld/update/howto'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue