通过wget从Dropbox链接下载包含子文件夹的文件夹到Unix服务器 [英] Download Folder including Subfolder via wget from Dropbox link to Unix Server

查看:454
本文介绍了通过wget从Dropbox链接下载包含子文件夹的文件夹到Unix服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个保管箱链接,如 https://www.dropbox.com/sh/w4366ttcz6/ AAB4kSz3adZ 会打开包含文件夹和文件的常用保管箱站点。
是否有可能使用wget将完整内容(tar或直接作为同步文件)下载到UNIX计算机上?
我在这里看到了一些帖子,其中下载了单个文件,但找不到任何答案。 Dropbox提供了一个api,但是由于服务器上的64位问题和 http://www.dropboxwiki.com/dropbox-addons/dropbox-gallery-download#BASH_Version 对我也不起作用...。还有其他建议吗?

I have a dropbox link like https://www.dropbox.com/sh/w4366ttcz6/AAB4kSz3adZ which opens the ususal dropbox site with folders and files. Is there any chance to download the complete content (tar or directly as sync) to a unix machine using wget? I have seen some posts here where single files were downloaded but could not find any answer to this. There is an api from Dropbox but that does not work on my server due to the 64 bit issue on my server and http://www.dropboxwiki.com/dropbox-addons/dropbox-gallery-download#BASH_Version does also not work for me.... any other suggestions?

推荐答案

此帮助文章介绍了一些参数,可用来从Dropbox共享链接中获得不同的行为:

This help article documents some parameters you can use to get different behaviors from Dropbox shared links:

https://www.dropbox.com/help/201

例如,使用此链接:

https://www.dropbox.com/sh/igoku2mqsjqsmx1/AAAeF57DR2ou_nZGC4JPoQKfa

dl 参数直接下载。使用curl,我们可以这样下载它:

We can use the dl parameter to get a direct download. Using curl, we can download it as such:

curl -L https://www.dropbox.com/sh/igoku2mqsjqsmx1/AAAeF57DR2ou_nZGC4JPoQKfa?dl=1 > download.zip

(要跟随重定向,-L是必需的。)

(The -L is necessary in order to follow redirects.)

或者使用wget,类似于:

Or, with wget, something like:

wget --max-redirect=20 -O download.zip https://www.dropbox.com/sh/igoku2mqsjqsmx1/AAAeF57DR2ou_nZGC4JPoQKfa

这篇关于通过wget从Dropbox链接下载包含子文件夹的文件夹到Unix服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆