如何使用wget从网站下载所有图像?

时间:2013-11-21 08:39:43

标签: image wget forum

以下是我的命令示例:

wget -r -l 0 -np -t 1 -A jpg,jpeg,gif,png -nd --connect-timeout=10 -P ~/support --load-cookies cookies.txt "http://support.proboards.com/" -e robots=off

Based on the input here

但没有真正下载,没有递归爬行,只需几秒钟即可完成。我试图从论坛备份所有图像,是导致问题的论坛结构吗?

2 个答案:

答案 0 :(得分:16)

wget -r -P /download/location -A jpg,jpeg,gif,png http://www.site.here

就像一个魅力

答案 1 :(得分:0)

使用其他名称下载图像文件。 在这里,我提供了wget.zip文件名,如下所示。

# wget -O wget.zip http://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gz
--2012-10-02 11:55:54--  http://ftp.gnu.org/gnu/wget/wget-1.5.3.tar.gz
Resolving ftp.gnu.org... 208.118.235.20, 2001:4830:134:3::b
Connecting to ftp.gnu.org|208.118.235.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 446966 (436K) [application/x-gzip]
Saving to: wget.zip
100%[===================================================================================>] 446,966     60.0K/s   in 7.5s
2012-10-02 11:56:02 (58.5 KB/s) - wget.zip
相关问题