View Single Post
Old 10-25-2013, 07:35 AM   #10
lucis_lupinum
Member
lucis_lupinum began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2013
Device: Kindle
Okay, I got it.

Spoiler:
Code:
def javascript_login(self, browser, username, password):
	browser.visit('http://www.aachener-zeitung.de/')
	f = browser.select_form('form[class="small dark left"]')
	f['login_loginname'] = username
	f['login_password'] = password
	browser.submit(timeout=120)
	html = browser.html
	open(r'C:\test.html', 'wb').write(html)


And hooray - the output html-file indicates that I am successfully logged in. I got my username and there is also a logout-button.

But sadly in the finished e-book the articles still don't appear and there is also a message that i should login...
So it seems that the login works now, but the fetching browser still isn't logged in :-S

Do I have to manually pass the information (cookies?) to the other browser instance? I didn't think so till now, in the recipes I also didn't find a hint for that...
lucis_lupinum is offline   Reply With Quote