Quote:
Originally Posted by kiklop74
There is also one hidden field in that form. Try this: ...
|
Hi kiklop74,
many thanks for your reply. I tried it, but it didn't work - got an ValueError: control 'id' is readonly. So I tried this then:
def get_browser(self):
br = BasicNewsRecipe.get_browser()
if self.username is not None and self.password is not None:
br.open('http://szmobil.sueddeutsche.de/login.php')
br.select_form(nr=0)
ctl_1 = br.find_control(type = 'hidden', name = 'id')
ctl_1.readonly = False
[1.try] ctl_1.value = 'streif'
br['username'] = self.username
br['password'] = self.password
[2.try]. br['id'] = 'streif'
br.submit()
return br
Both try outs brought the same. The ValueError disappeared but the downladed article pages have been the login-page again.
I'm getting more and more at loss with it.

I'm thankful for any idea?
Regards,
Gero