1.安裝ntlm https://github.com/requests/requests-ntlmgit
pip install requests_ntlmgithub
2.使用dom
import requests from requests_ntlm import HttpNtlmAuth requests.get("http://ntlm_protected_site.com",auth=HttpNtlmAuth('domain\\username','password'))