![我怎样才能递归地爬取文件服务器中的所有文件](https://linux22.com/image/1474450/%E6%88%91%E6%80%8E%E6%A0%B7%E6%89%8D%E8%83%BD%E9%80%92%E5%BD%92%E5%9C%B0%E7%88%AC%E5%8F%96%E6%96%87%E4%BB%B6%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%AD%E7%9A%84%E6%89%80%E6%9C%89%E6%96%87%E4%BB%B6.png)
答案1
使用 wget:
wget --mirror -p --html-extension --convert-links www.example.com
选项解释:
-p get all images, etc. needed to display HTML page.
--mirror turns on recursion and time-stamping, sets infinite
recursion depth and keeps FTP directory listings
--html-extension save HTML docs with .html extensions
--convert-links make links in downloaded HTML point to local files.