[Tutor] issues with urllib and loading a webpage

Sander Sweers sander.sweers at gmail.com
Wed Aug 24 09:13:00 CEST 2011


On Wed, 24 Aug 2011, 00:03:23 CEST, Robert Sjoblom <robert.sjoblom at gmail.com> wrote:

> > > Are you using Python 3 and urllib, and not using httplib2? Because I
> > > honestly can't get urllib.request.urlopen to work with
> > > http://www.boursorama.com/ -- I only get b'' from there.
> > 
> > Yes, Python 3.2 which version one are you using? I tried both with
> > debug and without.
> 
> Python 3.2.1 64 bit on win 32. This is really quite weird.

You are running 64bit on a 32bit operating system, did you meant to say 32bit python on win64? If you actually do have 64bit python installed remove it and install the 32bit version. 

> There
> should be something there, because the headers alone doesn't account
> for the 7kb that's received.

How large is the page when dowloading from the browser? Is it comparable in size?

Greets
Sander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110824/8f7cc4f6/attachment.html>


More information about the Tutor mailing list