mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 12:15:42 +01:00
Improve Ledevoir
This commit is contained in:
parent
7764b0b007
commit
f3ecd4f9ec
1 changed files with 4 additions and 0 deletions
|
|
@ -9,6 +9,8 @@
|
|||
http://www.ledevoir.com/
|
||||
'''
|
||||
|
||||
import re
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class ledevoir(BasicNewsRecipe):
|
||||
|
|
@ -32,6 +34,8 @@ class ledevoir(BasicNewsRecipe):
|
|||
remove_javascript = True
|
||||
no_stylesheets = True
|
||||
|
||||
preprocess_regexps = [(re.compile(r'(title|alt)=".*?>.*?"', re.DOTALL), lambda m: '')]
|
||||
|
||||
keep_only_tags = [
|
||||
dict(name='div', attrs={'id':'article'}),
|
||||
dict(name='ul', attrs={'id':'ariane'})
|
||||
|
|
|
|||
Loading…
Reference in a new issue