diff --git a/recipes/mediapart.recipe b/recipes/mediapart.recipe index 080ab66d3a..a8729500ef 100644 --- a/recipes/mediapart.recipe +++ b/recipes/mediapart.recipe @@ -120,8 +120,7 @@ class Mediapart(BasicNewsRecipe): date_arr = date_str.lower().split() return date(day=int(date_arr[0]), year=int(date_arr[2]), - month= - [None, 'janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', + month=[None, 'janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'].index(date_arr[1])) def print_version(self, url): @@ -145,10 +144,10 @@ class Mediapart(BasicNewsRecipe): def get_browser(self): br = BasicNewsRecipe.get_browser(self) if self.username is not None and self.password is not None: - br.open('https://www.mediapart.fr/user') + br.open('https://www.mediapart.fr/login') br.select_form(nr=1) br['name'] = self.username - br['pass'] = self.password + br['password'] = self.password br.submit() return br @@ -157,16 +156,6 @@ class Mediapart(BasicNewsRecipe): preprocess_regexps = [ (re.compile(r'(