Created
July 17, 2014 10:44
-
-
Save erayarslan/4bdc3863b68db1e69d37 to your computer and use it in GitHub Desktop.
mechanize Form Post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mechanize | |
browser = mechanize.Browser() | |
browser.set_handle_robots(False) | |
browser.open('http://www.erayarslan.com/notmine') | |
browser.select_form(nr=0) | |
browser.form['message'] = 'ohhh luuu' | |
browser.submit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment