On 1/27/06, Christian Seberino <seberino@spawar.navy.mil> wrote:
The following beautiful script using latest mechanize SVN code appears
to successfully handle login and password.  Now how download a file
from a related url like " http://www.betterinvesting.org/ssg/IBM"??

(You can't just use urllib.urlretrieve without permission errors.
IS THERE some method of mechanize.Browser to download files?)

import mechanize
br = mechanize.Browser()
br.select_form ("login")
br["handle"] = "<login>"
br["password"] = "<password>"
r = br.submit()

r = br.open(" http://www.betterinvesting.org/ssg/IBM")

and the infromation can be got to using r.read()