73
24
Seems I can only download dropbox files using explorer such as chrome and firefox. If I use wget to download, then I would get a file which is in html format. Why?
For example you can open this link
https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt> with explorer, but if you use
wget https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt
You would not get the content of this file, why? The following is part of test.txt to download it, this is not the content of test.txt at all.
So is it possible to download Dropbox files using wget
rather than explorer?
document.observe('script:loaded', function() {
SharingModel.init('test\x2etxt', Util.from_json('\x7b\x22item\x5fid\x22\x3a\x20\x22\x22\x2c\x20\x22secure\x5fhash\x22\x3a\x20\x22\x22\x2c\x20\x22subpath\x22\x3a\x20\x22\x22\x2c\x20\x22tkey\x22\x3a\x20\x22mx9eqve5l2ipgyk\x22\x7d'))
SharingModel.init_file()
$('emsnippet-9911dfc627e1d541').innerHTML = 'test\x2etxt'.em_snippet(50, 0.750).escapeHTML();
$('emsnippet-add7879f5d805012').innerHTML = 'test\x2etxt'.em_snippet(20, 0.750).escapeHTML();
$('emsnippet-981ac0639529f983').innerHTML = 'test\x2etxt'.em_snippet(20, 0.750).escapeHTML();
FilePreview.init_text('https\x3a\x2f\x2fdl\x2edropbox\x2ecom\x2fs\x2fmx9eqve5l2ipgyk\x2ftest\x2etxt', 0) });
} else if (window.jQuery) {
jQuery(function () {
SharingModel.init('test\x2etxt', Util.from_json('\x7b\x22item\x5fid\x22\x3a\x20\x22\x22\x2c\x20\x22secure\x5fhash\x22\x3a\x20\x22\x22\x2c\x20\x22subpath\x22\x3a\x20\x22\x22\x2c\x20\x22tkey\x22\x3a\x20\x22mx9eqve5l2ipgyk\x22\x7d'))
SharingModel.init_file()
$('emsnippet-9911dfc627e1d541').innerHTML = 'test\x2etxt'.em_snippet(50, 0.750).escapeHTML();
$('emsnippet-add7879f5d805012').innerHTML = 'test\x2etxt'.em_snippet(20, 0.750).escapeHTML();
$('emsnippet-981ac0639529f983').innerHTML = 'test\x2etxt'.em_snippet(20, 0.750).escapeHTML();
FilePreview.init_text('https\x3a\x2f\x2fdl\x2edropbox\x2ecom\x2fs\x2fmx9eqve5l2ipgyk\x2ftest\x2etxt', 0) });
}
I cannot get test.txt with command
wget https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.tx
ls -l
-rw-rw-r-- 1 mirror mirror 30K Sep 6 15:01 test.txt
Why WGET? Use CURL =
curl https://www.dropbox.com/sh/AAbbCCeeFF123?dl=1 -O -J -L
will preserve the folder/filenames + follows redirects. – bshea – 2017-08-15T20:59:09.580Use
youtube-dl
– even if you forget to put?dl=1
at the end (or the link hasdl=0
), it does the right thing. – unhammer – 2017-12-08T09:31:11.273Stupid question: were you logged into DropBox when you tried to download using a browser? – None – 2012-09-06T05:23:06.120
1Using
wget
on your link retrievestest.txt
(containing the 4 bytes "test") just fine on my side. Maybe something in your.wgetrc
is causing this? – jjlin – 2012-09-06T06:31:02.687@jjlin what is your command? mine is add above – hugemeow – 2012-09-06T07:02:17.297
5I used
wget --no-check-cert https://dl.dropbox.com/s/mx9eqve5l2ipgyk/test.txt
. That worked fine for me, but if you want to force a download, you might consider tryingwget --no-check-cert 'https://dl.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1'
instead (note the?dl=1
query parameter). – jjlin – 2012-09-06T15:43:10.250@jjlin so maybe a script is needed if i want to download file from dropbox:) – hugemeow – 2012-09-06T15:54:05.227