Hi, On 21 July 2014 09:38, bas smit <[email protected]> wrote: > Dear Darshit Shah > Thanks for your response. > > I tried with the following command: > subprocess.call([wget,'--user',user,'--password',passw,'-P',download_dir,'--page-requisites',url,'-o',logfile,\ > '--no-check-certificate']) >
The URL you provided needs login to access. But I guess recursive download is what you want. Try options `--recursive --level=1` , or `-r -l 1` for the short equivalent. > However, still unsuccessful to download the required file. > > I also obtained the following in the log file: > > WARNING: Certificate verification error: unable to get local issuer > certificate > > > I hope you can help me. > > Bas > > > WARNING: Certificate verification error: unable to get local issuer > certificate > > > On Thu, Jul 17, 2014 at 9:34 PM, Darshit Shah <[email protected]> wrote: > >> You want to use the --page-requisites option >> >> On Thu, Jul 17, 2014 at 2:22 PM, bas smit <[email protected]> wrote: >> > I am looking for command line option to use the same functionality as the >> > "Download All with Free Download Manager" does. It grabs the complete >> > download links though only partial links are shown in the source html. I >> > tried the following code, but but could not figure out which particular >> > parameter is necessary for that. The url provided below is the only known >> > one. >> > >> > import subprocess >> > >> > user, passw = 'user', 'passw' >> > >> > url = ' >> http://earthexplorer.usgs.gov/download/3120/LM10300301974324GDS05/STANDARD/BulkDownload >> ' >> > >> > wget = "C:\\Users\\bas\\Downloads\\wget-1.10.2.exe" >> > subprocess.call([wget, '--user', user, '--password', passw, url]) >> >> >> >> -- >> Thanking You, >> Darshit Shah >>
