From 6a44f742bd8b1f5f9f2e1e454e589d046db8686c Mon Sep 17 00:00:00 2001 From: Aimylios <20016942+aimylios@users.noreply.github.com> Date: Sat, 30 Oct 2021 10:39:25 +0200 Subject: [PATCH] Update Le Monde --- recipes/le_monde.recipe | 7 ++++--- recipes/le_monde_sub.recipe | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/recipes/le_monde.recipe b/recipes/le_monde.recipe index bbcd6d87c3..3586848851 100644 --- a/recipes/le_monde.recipe +++ b/recipes/le_monde.recipe @@ -62,6 +62,7 @@ class LeMonde(BasicNewsRecipe): remove_tags = [ classes('article__status meta__date meta__reading-time meta__social multimedia-embed'), dict(name=['footer', 'link']), + dict(name='img', attrs={'class': ['article__author-picture']}), dict(name='section', attrs={'class': ['article__reactions', 'author', 'catcher', 'portfolio', 'services-inread']}) ] @@ -93,9 +94,9 @@ class LeMonde(BasicNewsRecipe): br = BasicNewsRecipe.get_browser(self) if self.username is not None and self.password is not None: br.open('https://secure.lemonde.fr/sfuser/connexion') - br.select_form(name='connection') - br['connection[mail]'] = self.username - br['connection[password]'] = self.password + br.select_form(nr=0) + br['email'] = self.username + br['password'] = self.password br.submit() return br diff --git a/recipes/le_monde_sub.recipe b/recipes/le_monde_sub.recipe index faf2db09b5..0506f34902 100644 --- a/recipes/le_monde_sub.recipe +++ b/recipes/le_monde_sub.recipe @@ -60,6 +60,7 @@ class LeMondeNumerique(BasicNewsRecipe): remove_tags = [ classes('article__status meta__date meta__reading-time meta__social multimedia-embed'), dict(name=['footer', 'link']), + dict(name='img', attrs={'class': ['article__author-picture']}), dict(name='section', attrs={'class': ['article__reactions', 'author', 'catcher', 'portfolio', 'services-inread']}) ] @@ -90,9 +91,9 @@ class LeMondeNumerique(BasicNewsRecipe): def get_browser(self): br = BasicNewsRecipe.get_browser(self) br.open('https://secure.lemonde.fr/sfuser/connexion') - br.select_form(name='connection') - br['connection[mail]'] = self.username - br['connection[password]'] = self.password + br.select_form(nr=0) + br['email'] = self.username + br['password'] = self.password br.submit() return br