def __init__(self, host, token, verify_ssl=True):
if 'github.com' in host:
self.host = 'https://api.github.com'
else:
self.host = host + '/api/v3'
self.token = token
self.verify_ssl = verify_ssl
if not self.verify_ssl:
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
评论列表
文章目录