From 3e4d847eeefe9d921ab84146d77fd145e6343234 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 19 Jan 2013 21:28:50 +0530 Subject: [PATCH] Fix Barrons login form parsing --- recipes/barrons.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/barrons.recipe b/recipes/barrons.recipe index 9d79aed728..41ed7e26ec 100644 --- a/recipes/barrons.recipe +++ b/recipes/barrons.recipe @@ -64,8 +64,8 @@ class Barrons(BasicNewsRecipe): br = BasicNewsRecipe.get_browser() if self.username is not None and self.password is not None: br.open('http://commerce.barrons.com/auth/login') - br.select_form(name='login_form') - br['user'] = self.username + br.select_form(nr=0) + br['username'] = self.username br['password'] = self.password br.submit() return br