使用'urlopen'与getpage()获取'https'页面

时间:2011-11-05 03:50:04

标签: python twisted urlopen

我正在尝试使用urlopen()获取“https”网页(例如:https://github.com/twitter/bootstrap),它会毫无问题地返回页面。但我们正在为一个新项目评估Twisted并尝试使用getPage()来获取同一页面。但似乎它需要openSSL模块.. "exceptions.ImportError: No module named OpenSSL"

有没有办法继续使用getPage()(没有openSSL模块)以与urlopen()返回相同的方式获取“https”页面?

1 个答案:

答案 0 :(得分:2)

为什么不只是install pyOpenSSL