Download Folder including Subfolder via wget from Dropbox link to Unix Server

后端 未结 4 1985
悲哀的现实
悲哀的现实 2021-02-05 10:10

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 com

4条回答
  •  一个人的身影
    2021-02-05 11:01

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

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

    For example, using this link:

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

    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
    

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

    Or, with wget, something like:

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

提交回复
热议问题