In <[email protected]> Matt Graves
<[email protected]> writes:
> How would I submit a python HTTP POST request to... for example, go to
> google.com, enter "Pie" into the search box and submit (Search)
Something like this:
import urllib
import urllib2
# the google form search input box is named 'q'
data = { 'q': 'Pie' }
response = urllib2.urlopen('http://google.com', urllib.urlencode(data))
print response.read()
--
John Gordon A is for Amy, who fell down the stairs
[email protected] B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list