mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
...
This commit is contained in:
parent
206af4c041
commit
288e71de6f
@ -39,10 +39,10 @@ class SCMP(BasicNewsRecipe):
|
|||||||
#br.set_debug_responses(True)
|
#br.set_debug_responses(True)
|
||||||
#br.set_debug_redirects(True)
|
#br.set_debug_redirects(True)
|
||||||
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://www.scmp.com/portal/site/SCMP/')
|
br.open('http://www.scmp.com/')
|
||||||
br.select_form(name='loginForm')
|
br.select_form(nr=1)
|
||||||
br['Login' ] = self.username
|
br['name'] = self.username
|
||||||
br['Password'] = self.password
|
br['pass'] = self.password
|
||||||
br.submit()
|
br.submit()
|
||||||
return br
|
return br
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user