Some sites not allowing me to download pdfs using IDM or any bulk downloader,when I download all links the files appears as xyz.php,but when I click individual links it redirects me to the main pdf file,since there are 1000+ pdf I need to download its impossible for me to download each by clicking and then waiting to load the site is HERE
Help me a way out of it,trying different methods for months,searching for solution for years,any way out atleast to be more efficient!will be forever grateful if anyone can help me from this difficult problem.
I tested this solution with Chrome 70 and JDownloader 2 and it downloads all the files listed in the link you posted in the question.
These are the steps you have to follow:
-
var copyText = document.createElement("TEXTAREA");
document.body.appendChild(copyText);
document.querySelectorAll('li[data-name$=".pdf"]').forEach(function(o) {
var link = "https://pastpapers.papacambridge.com/" + o.getAttribute("data-href");
copyText.innerHTML += link + "\n";
console.log(link);
});
copyText.select();
document.execCommand("copy");