Fix Barrons login form parsing

This commit is contained in:
Kovid Goyal 2013-01-19 21:28:50 +05:30
parent 5b08c1ed60
commit 3e4d847eee

View File

@ -64,8 +64,8 @@ class Barrons(BasicNewsRecipe):
br = BasicNewsRecipe.get_browser() br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None: if self.username is not None and self.password is not None:
br.open('http://commerce.barrons.com/auth/login') br.open('http://commerce.barrons.com/auth/login')
br.select_form(name='login_form') br.select_form(nr=0)
br['user'] = self.username br['username'] = self.username
br['password'] = self.password br['password'] = self.password
br.submit() br.submit()
return br return br