View Single Post
Old 02-06-2010, 08:06 AM   #1375
exdream
Junior Member
exdream began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jan 2010
Device: Sony PRS-505
Quote:
Originally Posted by kiklop74 View Post
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
exdream is offline