0

So I am trying to scrape a webpage but there is a user/password field required before the page can be accessed (I think it's one of those .htaccess things? not sure what you call them). I know the user/pass normally but can't figure out how to bind it in the code. How do I send the user/pass when I access the page?

If I do it without the user/pass I just get a 401 Unauthorized error.

0

1 Answer 1

0

Assuming the authentication is requested by the server, rather than the webpage, you could try sending the credentials in the page URL:

https://stackoverflow.com/a/18264755/3457753

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.