mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-07 23:36:04 +01:00
...
This commit is contained in:
parent
206af4c041
commit
288e71de6f
1 changed files with 4 additions and 4 deletions
|
|
@ -39,10 +39,10 @@ def get_browser(self):
|
|||
#br.set_debug_responses(True)
|
||||
#br.set_debug_redirects(True)
|
||||
if self.username is not None and self.password is not None:
|
||||
br.open('http://www.scmp.com/portal/site/SCMP/')
|
||||
br.select_form(name='loginForm')
|
||||
br['Login' ] = self.username
|
||||
br['Password'] = self.password
|
||||
br.open('http://www.scmp.com/')
|
||||
br.select_form(nr=1)
|
||||
br['name'] = self.username
|
||||
br['pass'] = self.password
|
||||
br.submit()
|
||||
return br
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue