First, please recognize there are many answered questions about forum type logins. This is different, as this prompt does not appear in the HTML or JS.
I'm trying to automate some web scraping.
I would like to use something like the following to log into the page:
login_URL = 'https://somewebsite.com'
page_URL = 'https://somewebsite.com'
payload{
'Username': 'yourusername',
'Password': 'yourpassword'
}
with requests.Session() as session:
post = session.post(login_URL, data=payload)
r = session.get(page_URL)
print(r.text)
Based on my research, this doesn't seem possible since the prompt appears before the page even loads.
Any insights would be helpful!
