I am able to do the following to build a url:
base_url = 'http://google.com/'
qs = urllib.urlencode({'q': string})
url = base_url + '?' + qs
Is there a way to url-encode a string? For example, I would like to be able to do:
url = 'http://google.com/?q=' + urlencode('this is my search'))