[PyQt] urllib2 replacement in PyQt

detlev detlev at die-offenbachs.de
Wed Jun 30 18:39:45 BST 2010

On Dienstag, 29. Juni 2010, Jon Noble wrote:
> Hi, i'm having a real hard time with unicode and non-pyqt modules. The
> latest one I have is with urllib2. Take this url for example:
> http://www.albumart.org/?srchkey=Björk
> +Post&itempage=1&newsearch=1&searchindex=Music
> Urllib2 cannot handle the "ö" but browsers (including Eric IDE's
> helpviewer) can.
> This gets me thinking without using webview is there a way of retrieving
> an url's content via pyqt?

QHttp or in newer versions QNetworkAccessManager will do the job.

Detlev Offenbach
detlev at die-offenbachs.de

More information about the PyQt mailing list