已复制到剪贴板

wget

wget 是一个命令行工具,用于从互联网下载文件。它可以下载单个文件或整个网站,并支持断点续传。

例子

  • 下载单个文件:wget <https://example.com/file.zip>
  • 下载整个网站:wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL
  • 断点续传:wget -c <https://example.com/file.zip>
  • 使用代理服务器下载:wget -e use_proxy=yes -e http_proxy=PROXY-URL <https://example.com/file.zip>
  • 下载限速:wget --limit-rate=200k <https://example.com/file.zip>
  • 设置用户代理:wget --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3" <https://example.com/file.zip>