22

我知道如何使用 wget 从 ftp 下载,但我无法使用 wget 从以下链接下载:

http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file

如果您将其复制并粘贴到浏览器中,它将开始下载。但我想直接将它下载到我们的服务器,所以我不需要将它从我的桌面移动到服务器。我该怎么做?

谢谢!

4

3 回答 3

37

这就是我所做的:

wget -O file.tar "http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file"
于 2013-10-30T20:38:12.357 回答
7

使用 wget 的 -O 选项指定下载文件的保存位置。例如:

wget -O /path/to/file http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE46130&format=file
于 2013-10-30T20:38:01.100 回答
3
# -r : recursive    
# -nH : Disable generation of host-prefixed directories
# -nd : all files will get saved to the current directory
# -np : Do not ever ascend to the parent directory when retrieving recursively. 
# -R index.html*,999999-99999-1990.gz* : don't download files with this files pattern
wget -r -nH -nd -np -R *.html,999999-99999-1990.gz* http://www1.ncdc.noaa.gov/pub/data/noaa/1990/
于 2016-06-08T05:30:11.200 回答