mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
pep8
This commit is contained in:
parent
36cace1b48
commit
9996f3b88a
@ -2,7 +2,7 @@
|
|||||||
__author__ = 'Sylvain Durand <sylvain.durand@ponts.org>'
|
__author__ = 'Sylvain Durand <sylvain.durand@ponts.org>'
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
|
|
||||||
import time
|
import time, re
|
||||||
|
|
||||||
from calibre import strftime
|
from calibre import strftime
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
@ -99,9 +99,9 @@ class LeMonde(BasicNewsRecipe):
|
|||||||
self.log("Vos identifiants sont incorrects, ou votre abonnement LeMonde.fr ne vous permet pas de télécharger le journal.")
|
self.log("Vos identifiants sont incorrects, ou votre abonnement LeMonde.fr ne vous permet pas de télécharger le journal.")
|
||||||
return sections
|
return sections
|
||||||
|
|
||||||
|
|
||||||
def preprocess_html(self, soup):
|
def preprocess_html(self, soup):
|
||||||
for lgd in soup.findAll(id="lgd"):
|
for lgd in soup.findAll(id="lgd"):
|
||||||
lgd.contents[-1].extract()
|
lgd.contents[-1].extract()
|
||||||
return soup
|
return soup
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user