Truoble With A Search Script for

Brandon C brandonc530 at
Fri Mar 19 22:10:54 CET 2010

*grumble* *grumble* *grumble*

oops, sorry ... my mistake

it turns out that i misspelled one of the values and left another one out.
 here's the working script now for anyone who may care:

import urllib
import urllib2
url = ''
values = {'search_for' : 'blah', 'field' : 'nickname', 'mode' : 'search'}
data = urllib.urlencode(values)
request = urllib2.Request(url, data)
response = urllib2.urlopen(request)
page =
print page

the value of 'field' is 'nickname, not 'Nickname';
and i left out the 'mode' one

tks for yalls help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list