def json(self):
curl = pycurl.Curl()
curl.setopt(pycurl.URL, self.api_url)
curl.setopt(pycurl.CAINFO, certifi.where())
curl.setopt(pycurl.HTTPHEADER, ['User-Agent: curl/7.35.0', 'Accept: application/json'])
return curl.perform()
getPublicIPAddress_curlImpl.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录