linux - Python Mechanize Form submit -


i trying log web-page member number (medlemsnummer) , postal code (postnummer) mechanize.

br = browser() br.open('http://www.bokklubben.no/samboweb/medlem/minside.do')  br.select_form(nr=1)  br.form['logginn'] = '123456' br.form['passord'] = '0202'  br.submit() 

it seems it's loading , nothing happening.

the form has name, loginform. should select so:

br.select_form("loginform") 

also name of first form field login not logginn use

br.form['login'] = '123456' 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -