1

I cannot download the files correctly in this website.

I use the command which is shown in this question

wget -nd -r -l 10  -e robots=off http://biomet.ucdavis.edu/Evapotranspiration/

It can truly download the files,but unfortunately,they are download in a single folder,instead of the same structure just like in the website.

What should I do to download all these file in the same structure?

Yaron
  • 4,289
T X
  • 113

1 Answers1

1

The option -nd in your command means no-directories.

You should remove the -nd option from your command, and you'll get the same structure just like in the website:

wget -r -l 10  -e robots=off http://biomet.ucdavis.edu/Evapotranspiration/

wget man

2.6 Directory Options

‘-nd’ ‘--no-directories’

Do not create a hierarchy of directories when retrieving recursively. With this option turned on, all files will get saved to the current directory, without clobbering (if a name shows up more than once, the filenames will get extensions ‘.n’).

Yaron
  • 4,289