I want to download a pdf file. The page URL is:
Code:
www.amazon.com/product1/pdf
In the source file of the above page, there are several links (1 PDF+JPG files+js files...).
1- I want to download only the pdf file. The pdf file's link is as below (extracted from the above HTML source code):
Code:
http://book.amazon.com/still/10.1202/shelf.201205216/seed/1811_ftp.pdf?v=1&t=hf6hlzrm&fb62f105
It seems that "ftp.pdf" can be used to filter the above PDF link for wget.
2- I want to save the output file to
1811_ftp.pdf
That means whatever is after "seed/" and before "?v=" strings.
Thank you for your help.