December 16th, 2012, 09:30 PM
Mechanize or urllib2 techniques to log off a website
I am writing a script to download information from a webpage.
This is a password protected site, that logs me off when I close my browser or click the logout button on the site.
I can't seem to figure out how to close the session, and log off the website.
The inspect elements in chrome, show
<a href="/logged-out/" title="Logout">Logout</a>
I am using mechanize, and the documentation only suggests..
br.close(), which does not completely log me off...
Any help would be appreciated..