← Back to team overview

sikuli-driver team mailing list archive

[Question #273350]: I am trying to read https url, getting ssl import error

 

New question #273350 on Sikuli:
https://answers.launchpad.net/sikuli/+question/273350

Hi i am trying to import to read a https page so am using to import ssl , it gives me a import error is there any other way to do it ?

import urllib2,ssl
context = ssl._create_unverified_context()
response = urllib2.urlopen('https://', context=context)
html = response.read()
print(html)


That's the code am using getting error in the first line Import error no module named ssl , where as i tried to run the same code in a diff compiler it worked perfectly 

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.