无法使用 wget 下载 zip 文件

问题描述 投票:0回答:1

我正在尝试使用 wget 将 zip 文件从 dropbox 下载到本地,但我无法使用 wget 下载准确的文件,实际文件大小为 44MB,但下载的 zip 只有 61.48K ..我们如何使用 wget 处理这个问题?请找到下面的执行日志..

akshay@akshay-Bravo-15-A4DDR:~/Desktop/testzip$ wget https://www.dropbox.com/scl/fi/tqf1y5dcxoutq7r/atom-deployment.zip
--2024-04-08 16:21:29--  https://www.dropbox.com/scl/fi/tqf1y5dcxoutq7r/atom-deployment.zip
Resolving www.dropbox.com (www.dropbox.com)... 2620:100:6031:18::a27d:5112, 162.125.81.18
Connecting to www.dropbox.com (www.dropbox.com)|2620:100:6031:18::a27d:5112|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘atom-deployment.zip.3’

atom-deployment.zip.3                             [  <=>                                                                                          ]  61.48K   301KB/s    in 0.2s    

2024-04-08 16:21:30 (301 KB/s) - ‘atom-deployment.zip.3’ saved [62954]
 
zip wget dropbox
1个回答
0
投票

默认情况下,Dropbox 文件共享链接指向文件的 HTML 预览页面,而不是文件数据本身。

要访问文件数据,您需要使用

dl=1
raw=1
URL 参数。有关此信息,请参阅此处的帮助中心文章:https://help.dropbox.com/share/force-download

© www.soinside.com 2019 - 2024. All rights reserved.