Right, so I looked at some python tutorials about interfacing with internet, but every time a use a code such as:

import urllib
pagetext = urllib.urlopen("http://www.python.org.html").read()
print pagetext

It just comes up with a load of error messages.
how can i sort this

Using 2.5.4:
came up with

Traceback (most recent call last):
  File "C:/Python25/urltest.py", line 2, in <module>
    pagetext = urllib.urlopen("http://www.python.org").read()
  File "C:\Python25\Lib\urllib.py", line 82, in urlopen
    return opener.open(url)
  File "C:\Python25\Lib\urllib.py", line 190, in open
    return getattr(self, name)(url)
  File "C:\Python25\Lib\urllib.py", line 325, in open_http
  File "C:\Python25\lib\httplib.py", line 860, in endheaders
  File "C:\Python25\lib\httplib.py", line 732, in _send_output
  File "C:\Python25\lib\httplib.py", line 699, in send
  File "C:\Python25\lib\httplib.py", line 667, in connect
IOError: [Errno socket error] (11001, 'getaddrinfo failed')
This question has already been answered. Start a new discussion instead.