How to scrape URL data from intranet site using python?

前端 未结 1 404
梦毁少年i
梦毁少年i 2021-01-14 17:17

I need a Python Warrior to help me (I\'m a noob)! I\'m trying to scrape certain data from an intra-net site using Module urllib. However, since it is my company website that

相关标签:
1条回答
  • 2021-01-14 17:22

    Try requests with requests_ntlm:

    import requests
    from requests_ntlm import HttpNtlmAuth
    
    r = requests.get("http://ntlm_protected_site.com",auth=HttpNtlmAuth('domain\\username','password'))
    
        print r.text
    

    If you need help with any specifics of this library and can't find it in the docs, leave a comment.

    0 讨论(0)
提交回复
热议问题