等同于 windows 8.1 的 wget 命令行
Equivalent of wget command line for windows 8.1
我在工作环境中使用 git bash 作为我的命令行界面。
windows 8.1 有可用的 wget
命令吗?
您可以使用 curl 代替 wget。
curl http://www.google.com/
使用 CygWin 并下载 wGet 包
https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fwget%2Fwget-1.16.3-1&grep=wget
可以直接下载wget windows
1) 从 http://gnuwin32.sourceforge.net/packages/wget.htm or https://eternallybored.org/misc/wget/
下载 windows 的 wget
2) 从 cygwin.com 下载安装 cygwin 并安装 wget 包
3) 从 curl.haxx.se
获取类似的工具,例如 windows 的 curl
Windows 8.1 PowerShell 同时具有 wget 和 curl 命令。
两者的表现完全相同,就好像它们是彼此的同义词一样。
示例 - 检索 http://www.sdsolarblog.com/montage/show.html
PS C:/users/Admin> curl http://www.sdsolarblog.com/montage/show.html
或
PS C:/users/Admin> wget http://www.sdsolarblog.com/montage/show.html
实际情况如下:
要下载整个原始文件,您需要像这样添加 -outfile
选项:
PS C:/users/Admin> curl http://www.sdsolarblog.com/montage/show.html -outfile show.html
我在工作环境中使用 git bash 作为我的命令行界面。
windows 8.1 有可用的 wget
命令吗?
您可以使用 curl 代替 wget。
curl http://www.google.com/
使用 CygWin 并下载 wGet 包
https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fwget%2Fwget-1.16.3-1&grep=wget
可以直接下载wget windows
1) 从 http://gnuwin32.sourceforge.net/packages/wget.htm or https://eternallybored.org/misc/wget/
下载 windows 的 wget
2) 从 cygwin.com 下载安装 cygwin 并安装 wget 包
3) 从 curl.haxx.se
Windows 8.1 PowerShell 同时具有 wget 和 curl 命令。
两者的表现完全相同,就好像它们是彼此的同义词一样。
示例 - 检索 http://www.sdsolarblog.com/montage/show.html
PS C:/users/Admin> curl http://www.sdsolarblog.com/montage/show.html
或
PS C:/users/Admin> wget http://www.sdsolarblog.com/montage/show.html
实际情况如下:
要下载整个原始文件,您需要像这样添加 -outfile
选项:
PS C:/users/Admin> curl http://www.sdsolarblog.com/montage/show.html -outfile show.html