为什么wget无法下载所有文件和文件夹?

时间:2020-05-04 05:53:48

标签: wget

尝试下载https://play.golang.com/p/-6flZcdSYwj的全部内容。几种变型失败,如下所示。还尝试了http和https。

$ wget -rkpN -e robots=off http://dl.bintray.com/de-jcup/basheditor/

--2020-05-04 11:07:37--  http://dl.bintray.com/de-jcup/basheditor/
Resolving dl.bintray.com (dl.bintray.com)... 52.26.64.218, 52.11.170.179
Connecting to dl.bintray.com (dl.bintray.com)|52.26.64.218|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'dl.bintray.com/de-jcup/basheditor/index.html'

     0K                                                        7.85M=0s

Last-modified header missing -- time-stamps turned off.
2020-05-04 11:07:38 (7.85 MB/s) - 'dl.bintray.com/de-jcup/basheditor/index.html' saved [682]

--2020-05-04 11:07:38--  http://dl.bintray.com/de-jcup/basheditor/:artifacts.jar
Reusing existing connection to dl.bintray.com:80.
HTTP request sent, awaiting response... 404 Not Found
2020-05-04 11:07:38 ERROR 404: Not Found.

--2020-05-04 11:07:38--  http://dl.bintray.com/de-jcup/basheditor/:content.jar
Reusing existing connection to dl.bintray.com:80.
HTTP request sent, awaiting response... 404 Not Found
2020-05-04 11:07:38 ERROR 404: Not Found.

--2020-05-04 11:07:38--  http://dl.bintray.com/de-jcup/basheditor/:features/
Reusing existing connection to dl.bintray.com:80.
HTTP request sent, awaiting response... 404 Not Found
2020-05-04 11:07:38 ERROR 404: Not Found.

--2020-05-04 11:07:38--  http://dl.bintray.com/de-jcup/basheditor/:logs.zip
Reusing existing connection to dl.bintray.com:80.
HTTP request sent, awaiting response... 404 Not Found
2020-05-04 11:07:39 ERROR 404: Not Found.

--2020-05-04 11:07:39--  http://dl.bintray.com/de-jcup/basheditor/:plugins/
Reusing existing connection to dl.bintray.com:80.
HTTP request sent, awaiting response... 404 Not Found
2020-05-04 11:07:39 ERROR 404: Not Found.

--2020-05-04 11:07:39--  http://dl.bintray.com/de-jcup/basheditor/:update-site/
Reusing existing connection to dl.bintray.com:80.
HTTP request sent, awaiting response... 404 Not Found
2020-05-04 11:07:39 ERROR 404: Not Found.

FINISHED --2020-05-04 11:07:39--
Total wall clock time: 2.1s
Downloaded: 1 files, 682 in 0s (7.85 MB/s)
Converting links in dl.bintray.com/de-jcup/basheditor/index.html... 0-6
Converted links in 1 files in 0.002 seconds.

$ wget -r --no-parent http://dl.bintray.com/de-jcup/basheditor/

--2020-05-04 11:12:56--  http://dl.bintray.com/de-jcup/basheditor/
Resolving dl.bintray.com (dl.bintray.com)... 52.11.170.179, 52.26.64.218
Connecting to dl.bintray.com (dl.bintray.com)|52.11.170.179|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'dl.bintray.com/de-jcup/basheditor/index.html'

     0K                                                        8.93M=0s

2020-05-04 11:12:57 (8.93 MB/s) - 'dl.bintray.com/de-jcup/basheditor/index.html' saved [682]

Loading robots.txt; please ignore errors.
--2020-05-04 11:12:57--  http://dl.bintray.com/robots.txt
Reusing existing connection to dl.bintray.com:80.
HTTP request sent, awaiting response... 200 OK
Length: 25 [text/plain]
Saving to: 'dl.bintray.com/robots.txt'

     0K                                                       100%  579K=0s

2020-05-04 11:12:57 (579 KB/s) - 'dl.bintray.com/robots.txt' saved [25/25]

FINISHED --2020-05-04 11:12:57--
Total wall clock time: 0.8s
Downloaded: 2 files, 707 in 0s (5.86 MB/s)

>

$ wget --no-parent --reject "index.html*" http://dl.bintray.com/de-jcup/basheditor

--2020-05-04 11:18:53--  http://dl.bintray.com/de-jcup/basheditor
Resolving dl.bintray.com (dl.bintray.com)... 52.26.64.218, 52.11.170.179
Connecting to dl.bintray.com (dl.bintray.com)|52.26.64.218|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://dl.bintray.com/de-jcup/basheditor/ [following]
--2020-05-04 11:18:54--  http://dl.bintray.com/de-jcup/basheditor/
Reusing existing connection to dl.bintray.com:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'basheditor'

     0K                                                        8.86M=0s

2020-05-04 11:18:54 (8.86 MB/s) - 'basheditor' saved [682]

编辑: 尝试过其他网站。Works。

wget -rkpN -e robots=off --no-parent https://trac-hacks.org/svn/wikieditorforeclipseplugin/update-site/v_0.1.0.x/

0 个答案:

没有答案