jonay

error python

Jan 23rd, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.95 KB | None | 0 0
  1. código :
  2. from urllib.request import urlopen
  3.  
  4. path = 'Administrator'
  5. url = urlopen('http://codeclassic.org/'+path)
  6.  
  7. error:
  8. Traceback (most recent call last):
  9.   File "C:\enumeracion.py", line 4, in <module>
  10.     url = urlopen('http://codeclassic.org/'+path)
  11.   File "C:\Python34\lib\urllib\request.py", line 153, in urlopen
  12.     return opener.open(url, data, timeout)
  13.   File "C:\Python34\lib\urllib\request.py", line 461, in open
  14.     response = meth(req, response)
  15.   File "C:\Python34\lib\urllib\request.py", line 574, in http_response
  16.     'http', request, response, code, msg, hdrs)
  17.   File "C:\Python34\lib\urllib\request.py", line 499, in error
  18.     return self._call_chain(*args)
  19.   File "C:\Python34\lib\urllib\request.py", line 433, in _call_chain
  20.     result = func(*args)
  21.   File "C:\Python34\lib\urllib\request.py", line 582, in http_error_default
  22.     raise HTTPError(req.full_url, code, msg, hdrs, fp)
  23. urllib.error.HTTPError: HTTP Error 404: Not Found
Advertisement
Add Comment
Please, Sign In to add comment