There is code for downloading both images and the pdf docs in a webpage run the code by using python3 img.py and then select the desired task