js-crawler icon indicating copy to clipboard operation
js-crawler copied to clipboard

How to deal with basic auth?

Open pittersnider opened this issue 5 years ago • 1 comments

Dear developers,

I am crafting a tool that let me automatically crawl a few sites.
However, they are protected by a username and password (that I have).

Which is the correct way of passing this information to js-crawler?

Best regards,
Pitter.

pittersnider avatar Aug 26 '19 10:08 pittersnider

From what I understand js-crawler and other http request packages can only manage static html. Meaning you can't dynamically interact with the page. You'd have to visit the url's through a headless browser like puppeteer for auth.

sbr2567 avatar May 03 '20 06:05 sbr2567