John Gordon gordon at
Wed Jul 17 22:15:29 CEST 2013

In <00ec2f9b-fcae-428c-8932-163e653dd71b at> Matt Graves <tunacubes at> writes:

> How would I submit a python HTTP POST request to... for example, go to
>, 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('', urllib.urlencode(data))

John Gordon                   A is for Amy, who fell down the stairs
gordon at              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

More information about the Python-list mailing list