Jun-27-2017, 06:28 AM
Hello All,
I'm new to python development and using python version Python 2.7.13 , basically im trying to open a url but I get an error. Please supoort me on what the issue here is.
Code Snippet:
import urllib2
response = urllib2.urlopen('python.org') (I have removed the http link intenationally since i was not allowed to post the link)
Issue:
.......
File "C:\Python27\lib\urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 11004] getaddrinfo failed>
Thanks!
Prashanth
I'm new to python development and using python version Python 2.7.13 , basically im trying to open a url but I get an error. Please supoort me on what the issue here is.
Code Snippet:
import urllib2
response = urllib2.urlopen('python.org') (I have removed the http link intenationally since i was not allowed to post the link)
Issue:
.......
File "C:\Python27\lib\urllib2.py", line 1198, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 11004] getaddrinfo failed>
Thanks!
Prashanth