如果页面不存在,如何使用 wget 下载页面但忽略 404 错误消息? [英] How to download a page with wget but ignore 404 error messages if the page does not exist?
本文介绍了如果页面不存在,如何使用 wget 下载页面但忽略 404 错误消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法让 wget
在下载 URL 或抓取网页时忽略 HTTP 错误响应代码?
Is there any way to have wget
ignore HTTP error response codes when downloading a URL or spidering a webpage?
推荐答案
假设我理解您所说的忽略错误"是什么意思,您可以尝试使用 --content-on-error
参数.根据 wget manual,它将强制 wget 跳过状态错误代码\.
Assuming I understood what you mean by "ignoring errors", you can try the --content-on-error
argument. According to wget manual, it will force wget to skip status error codes\.
这篇关于如果页面不存在,如何使用 wget 下载页面但忽略 404 错误消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文