使用起始 url 中的 wget 停止从网站下载特定类型的所有文件 [英] Download all files of a particular type from a website using wget stops in the starting url

查看:45
本文介绍了使用起始 url 中的 wget 停止从网站下载特定类型的所有文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下方法无效.

wget -r -A .pdf home_page_url

wget -r -A .pdf home_page_url

它以以下消息停止:

....
Removing site.com/index.html.tmp since it should be rejected.
FINISHED

我不知道为什么它只停在起始 url 中,不要进入其中的链接来搜索给定的文件类型.

I don't know why it only stops in the starting url, do not go into the links in it to search for the given file type.

递归下载网站中所有 pdf 文件的任何其他方式.?

Any other way to recursively download all pdf files in an website. ?

推荐答案

下面的cmd对我有用,它会下载一个站点的图片

the following cmd works for me, it will download pictures of a site

wget -A pdf,jpg,png -m -p -E -k -K -np http://site/path/

这篇关于使用起始 url 中的 wget 停止从网站下载特定类型的所有文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆