Skip to content

Instantly share code, notes, and snippets.

@GitMoIO
Created December 26, 2014 06:19
Show Gist options
  • Save GitMoIO/d5d5be86fc607e50f3dc to your computer and use it in GitHub Desktop.
Save GitMoIO/d5d5be86fc607e50f3dc to your computer and use it in GitHub Desktop.
import mechanize
br = mechanize.Browser()
br.add_password("http://blah.blah/", "adm", "mps")
response = br.open("http://blah.blah/somepage.html")
br.select_form(nr=1)
br["junk"]=["hatethis"]
response3=br.form.click(name="applybutton",nr=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment