import urllib2
response = urllib2.urlopen('https://www.google.com/voice')
html = response.read()
print html
Traceback (most recent call last):
File "1.py", line 2, in <module>
response = urllib2.urlopen('https://www.google.com/voice')
File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen
return _opener.open(url, data)
File "/usr/lib/python2.5/urllib2.py", line 381, in open
response = self._open(req, data)
File "/usr/lib/python2.5/urllib2.py", line 399, in _open
'_open', req)
File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/usr/lib/python2.5/urllib2.py", line 1115, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.5/urllib2.py", line 1082, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error (101, 'Network is unreachable')>
| The Following User Says Thank You to extendedping For This Useful Post: | ||
