Can not get urllib.urlopen to work
Peter Hansen
peter at engcorp.com
Wed Oct 27 15:54:54 EDT 2004
Pater Maximus wrote:
> I am trying to implement the recipe listed at
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/211886
>
> However, I can not get to first base. When I try to run
>
> import urllib
> fo=urllib.urlopen("http://www.dictionary.com/")
> page = fo.read()
>
> I get:
> Traceback (most recent call last):
> File "C:\PROGRA~1\PYTHON\lib\httplib.py", line 548, in connect
> raise socket.error, msg
> IOError: [Errno socket error] (10061, 'Connection refused')
Do you have any reason to think that this site is currently
hosting a web server?
Attempting to connect with IE or Telnet on port 80 results in
a similar response.
(Telnet is always a good thing to try, before posting about
server problems...)
-Peter
More information about the Python-list
mailing list