Submitting Form (python)
I have a page full of links like this: text here When the link is clicked a window pops up (using Javascript). The Javascript
Solution 1:
You can use urllib2.urlopen to make a POST request to the script the form is submitting to.
import urllib, urllib2
url = '/doaction.php'
data= {'hashcode': 'blah', 'name':'blahblah', 'type':'blahblahblah'}
request = urllib2.Request(url, urllib.urlencode(data))
response = urllib2.urlopen(request)
Post a Comment for "Submitting Form (python)"