From f1dfdc5c6a157a7feb073219dc810b889f7ce1f6 Mon Sep 17 00:00:00 2001 From: Daisuky Date: Tue, 20 Jun 2017 22:56:25 +0900 Subject: [PATCH] Adding id of submitBtn for br.submit() to avoid redirected to login page after passing correct email and password. --- recipes/nikkei_news.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/nikkei_news.recipe b/recipes/nikkei_news.recipe index 542180ea57..6180922298 100644 --- a/recipes/nikkei_news.recipe +++ b/recipes/nikkei_news.recipe @@ -66,7 +66,7 @@ class NikkeiNet_paper_subscription(BasicNewsRecipe): br.select_form(name='LA7010Form01') br['LA7010Form01:LA7010Email'] = self.username br['LA7010Form01:LA7010Password'] = self.password - br.submit() + br.submit(id='LA7010Form01:submitBtn') # response = br.response() print "-------------------------JS redirect---------------------------------------" br.select_form(nr=0)