[EMAIL PROTECTED] a écrit :
> Hi,
>
> I'm just trying to read from a webpage with urllib but I'm getting
> IOErrors. This is my code:
>
> import urllib
> sock = urllib.urlopen("http://www.google.com/";)
>
> and this is the error:
>
> Traceback (most recent call last):
> File "", line 1, in
>
Dennis,
I tried a ProxyHandler with the following code ...
proxy_support = urllib2.ProxyHandler({})
opener = urllib2.build_opener(proxy_support)
urllib2.install_opener(opener)
... but it's giving me the same result.
Then I tried to tunnel using code from ...
http://aspn.activestate.com/ASPN/Co
Hi Salvatore,
Even if I catch the exceptions in a loop it goes on forever.
- ken
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
Try to increase the time out : socket.settimeout(n)
and catch the timeout error when it occurs
Regards
[EMAIL PROTECTED] a écrit :
> Hi,
>
> I'm just trying to read from a webpage with urllib but I'm getting
> IOErrors. This is my code:
>
> import urllib
> sock = urllib.urlopen("http:/
Hi,
I'm just trying to read from a webpage with urllib but I'm getting
IOErrors. This is my code:
import urllib
sock = urllib.urlopen("http://www.google.com/";)
and this is the error:
Traceback (most recent call last):
File "", line 1, in
sock = urllib.urlopen("http://www.google.com/";)