fix spelling mistakes
This commit is contained in:
parent
19ea1f4299
commit
a6debd0c8d
@ -299,11 +299,11 @@ class netflix:
|
|||||||
|
|
||||||
def downloadFile2(self, url, file_name):
|
def downloadFile2(self, url, file_name):
|
||||||
with open(file_name, "wb") as f:
|
with open(file_name, "wb") as f:
|
||||||
#避免ssl错误卡死,关闭requests模块ssl证书验证:verify=False
|
# 避免ssl错误卡死,关闭requests模块ssl证书验证:verify=False
|
||||||
#关闭后,控制台持续输出警告,建议开启证书验证,取消注释下行代码可以屏蔽
|
# 关闭后,控制台持续输出警告,建议开启证书验证,取消注释下行代码可以屏蔽
|
||||||
#requests.packages.urllib3.diable_warnings()
|
# requests.packages.urllib3.disable_warnings()
|
||||||
response = requests.get(url, stream=True, verify=False)
|
response = requests.get(url, stream=True, verify=False)
|
||||||
#response.encoding = 'UTF-8'
|
# response.encoding = 'UTF-8'
|
||||||
f.write(response.content)
|
f.write(response.content)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user