So I'm trying to read a web page using mechanize.Browser() module in Python. The problem is that br.open(url) does not work, because python returns the error in the title.
Here's the code:
url = "http://www.myserver.com/prda.php?validate=" + licensey
readurl = br.open(url).read()
At the latter line, I get:
File "/usr/lib/python2.7/urllib.py", line 1038, in unwrap
url = url.strip()
AttributeError: 'QString' object has no attribute 'strip'
I tried using unicode(readurl), unicode (br.open(url).read()), readlines() instead of read(), str (in place of unicode)... I either get the same error, or None output from br.open.read()
Help?