htmlnode.js.htaccessweb-scraping.htpasswd

Filling out a 3rd party htacces


I'd like to write a nodejs script that checks every few minutes a 3rd-party website. The only problem is that I have to enter my username and password through a .htpasswd/.htacces prompt. How can I do this with nodejs?


Solution

  • It was easy! I just used http://username:password@www.websiteurl.com and it worked