How to download all files (but not HTML) from a website using wget?

前端 未结 8 979
生来不讨喜
生来不讨喜 2020-11-29 14:19

How to use wget and get all the files from website?

I need all files except the webpage files like HTML, PHP, ASP etc.

8条回答
  •  醉梦人生
    2020-11-29 15:08

    wget -m -p -E -k -K -np http://site/path/
    

    man page will tell you what those options do.

    wget will only follow links, if there is no link to a file from the index page, then wget will not know about its existence, and hence not download it. ie. it helps if all files are linked to in web pages or in directory indexes.

提交回复
热议问题