I want to try and download a large amount of files on my computer from a given server, how would I be able to do that? I am aware that you may be able to do this with javascript, buat am having trouble getting the script to grab all of the link elements on the page and get the href attributes.
My script so far:
const link = document.querySelector('a');
let href = link.getAttribute('href');
alert(href);