查看完整版本: 如何在 linux下使用 wget 砍站(下載整個網站)


virage 2013-7-17 15:11

如何在 linux下使用 wget 砍站(下載整個網站)

<div>使用wget砍站供離線瀏覽</div><div><br></div><div>範例:只抓 http://www.adj.com.tw 之下的資料</div><div><br></div><div>$ wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows http://www.adj.com.tw</div><div><br></div><div>常用參數說明:</div><div>&nbsp; &nbsp; --recursive: download the entire Web site.</div><div>&nbsp; &nbsp; --domains example.org: don’t follow links outside website.org.</div><div>&nbsp; &nbsp; --no-parent: don’t follow links outside the directory manual/install/.</div><div>&nbsp; &nbsp; --page-requisites: get all the elements that compose the page (images, CSS and so on).</div><div>&nbsp; &nbsp; --html-extension: save files with the .html extension.</div><div>&nbsp; &nbsp; --convert-links: convert links so that they work locally, off-line.</div><div>&nbsp; &nbsp; --restrict-file-names=windows: modify filenames so that they will work in Windows as well.</div><div>&nbsp; &nbsp; --no-clobber: don’t overwrite any existing files (used in case the download is interrupted and resumed).</div><div>&nbsp; &nbsp; -e robots=off: ignore robots.txt</div>

MinhAmorello 2024-3-19 15:46

The writing style is so [url=https://janitorailogin.com/]prodentim[/url] engaging. I couldn't stop reading until I reached the end.
頁: [1]
查看完整版本: 如何在 linux下使用 wget 砍站(下載整個網站)