I use mechanize to log in, but then after I submit the logging in details and I sign in successfully I'm not sure how to keep the session active and fill in the next form. Could anyone give me some tips?
from mechanize import Browser
br = Browser()
br.open("http://example.com")
br.select_form(nr=0)
br['username'] = 'user'
br['password'] = 'pass'
br.submit()