There is a website that has pdf book or article inside it. for example
and the other pages differ only in "seq=".
Is there any way or software to generate all pages and download it. Thanks.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityThere is a website that has pdf book or article inside it. for example
and the other pages differ only in "seq=".
Is there any way or software to generate all pages and download it. Thanks.
This is probably cumbersome compared to other approaches, but this perl script ought to do the job:
#!/usr/bin/perl
use warnings;
use strict;
my $seq = 1;
my $maxseq = 100;
while($seq <= $maxseq)
{
my $cmdstring = 'wget https://example.com/cgi/imgsrv/download/pdf?id=mdp.39015015603924;orient=0;size=100;seq=' . $seq . ';attachment=0';
print `$cmdstring`;
$seq++
}
grab hold of a perl interpreter and a port of wget for your system, and it'll download all the files, starting at seq=1
, ending at seq=100
. Should work fine for similar cases with other URLs, just replace the URL in the while
-loop, and change the $seq
and $maxseq
to whatever you want.
Disclaimer: I have not tested it, as I do not have perl on my current machine. If there are any problems, they should be easily fixable.
wget
? You can do the same in any shell.
You can use the batch downloader WFDownloader App. Open the app, go to Tasks -> Add batch download with pattern. Next, specify the range on your link in square brackets like so seq=[1-50].
The url now looks like this ...example.com/cgi/imgsrv/download/pdf?id=mdp.39015015603924;orient=0;size=100;seq=[1-50];attachment=0.
Click confirm and then use the Start button to begin the downloads in a batch.
Screenshot: