python requests實現windows身份驗證登陸

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'))
相關文章
相關標籤/搜索