How to download dropbox files using command

How to download dropbox files using Wget or cUrl command

Tips edit

 
  • Replace the Dropbox URL parameter from ?dl=0 with ?dl=1

Using Wget command edit

Wget - GNU Project - Free Software Foundation

example command

wget -O /path/to/pc/file_name.pdf "https://www.dropbox.com/s/some_hash_strings/file_name.pdf?dl=1"

Using cUrl command edit

curl

Example command

curl "https://www.dropbox.com/s/some_hash_strings/file_name.pdf?dl=1" -L -o /path/to/pc/file_name.pdf

References edit