If someone comes across this question again, I found a solution:
The trick is to use Mechanize and a series of calls Browser.submit()on the corresponding pages.
One freeze that others might encounter is that ASP.NET pages (the biggest source of postback navigation, in my experience) also need a hidden parameter __EVENTTARGETin a form that won't exist when you use mechanization.
The function __doPostBack('foo')on these pages gives the corresponding value __EVENTTARGETthrough the javascript onclick event on each of the links, but since mechanization does not use javascript, you will need to set these values โโyourself.
, :
def add_event_target(form, target):
form.new_control('hidden','__EVENTTARGET',attrs = dict(name='__EVENTTARGET'))
form.set_all_readonly(False)
form["__EVENTTARGET"] = target
, , .