mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Barrons login form parsing
This commit is contained in:
parent
5b08c1ed60
commit
3e4d847eee
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user