Alan AI allows you to crawl web resources protected with Basic authentication.
To be able to retrieve data from such resources, add the auth parameter to the corpus() function and define the username and password to access the resource.
Example
corpus({
title: `Protected resources`,
urls: [`https://testpages.eviltester.com/styled/auth/basic-auth-results.html`],
auth: {username: `authorized`, password: `password001`},
depth: 3,
maxPages: 1,
priority: 1,
});Authentication Parameters
usernameThe username for Basic authentication
passwordThe password for Basic authentication
Note:
The auth parameter supports Basic authentication only. Other authentication methods are not currently supported.