I log in a SNS website with my own accounts in real firefox browser.( it needs verify code! )
and now I want to do something with mechanize in python. I imported all cookies that current firefox browser kept to a MozillaCookieJar instance called "cj", and then created a browser br=Mechanize.Browser()
, set its cookiejar br.set_cookiejar(cj)
, but when I use it to open the SNS website again in python br.open(site)
it told me I did'nt log in yet, are there some key steps that I missed?
best regards!