How to download a page with wget but ignore 404 error messages if the page does not exist?

有些话、适合烂在心里 提交于 2020-04-13 07:45:08

问题


Is there any way to have wget ignore HTTP error response codes when downloading a URL or spidering a webpage?


回答1:


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\.



来源:https://stackoverflow.com/questions/32095741/how-to-download-a-page-with-wget-but-ignore-404-error-messages-if-the-page-does

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!