I am trying to scrape an internal web page with BeautifulSoup. The web page itself is only open to certain users on our network and uses integrated Windows authentication. I have a simple script below that works just fine, but I have to provide credentials.
import requests
from requests_ntlm import HttpNtlmAuth
from bs4 import BeautifulSoup
url = "internal page"
content = requests.get(url, auth=HttpNtlmAuth('domain\\myusername', 'mypw'))
result = BeautifulSoup(content.text, 'html.parser')
print(result)
Is it possible for me to run this in such a way that I don't have to provide my credentials, using integrated Windows authentication?
Thank you.