Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- código :
- from urllib.request import urlopen
- path = 'Administrator'
- url = urlopen('http://codeclassic.org/'+path)
- error:
- Traceback (most recent call last):
- File "C:\enumeracion.py", line 4, in <module>
- url = urlopen('http://codeclassic.org/'+path)
- File "C:\Python34\lib\urllib\request.py", line 153, in urlopen
- return opener.open(url, data, timeout)
- File "C:\Python34\lib\urllib\request.py", line 461, in open
- response = meth(req, response)
- File "C:\Python34\lib\urllib\request.py", line 574, in http_response
- 'http', request, response, code, msg, hdrs)
- File "C:\Python34\lib\urllib\request.py", line 499, in error
- return self._call_chain(*args)
- File "C:\Python34\lib\urllib\request.py", line 433, in _call_chain
- result = func(*args)
- File "C:\Python34\lib\urllib\request.py", line 582, in http_error_default
- raise HTTPError(req.full_url, code, msg, hdrs, fp)
- urllib.error.HTTPError: HTTP Error 404: Not Found
Advertisement
Add Comment
Please, Sign In to add comment