使用wget包含#的地址

Ada*_* Sh 1 html wget

我尝试使用此命令下载html文件:

wget -r --page-requisites  dowload.html https://www.mysite.com/docs//#!Mydocs;location=page1
Run Code Online (Sandbox Code Playgroud)

这给了我下一个错误:

-bash: !MyDocs: event not found
Run Code Online (Sandbox Code Playgroud)

如何使用wget包含#?

sus*_*tus 5

用单引号括起URL.这会阻止shell解析内容.

 wget -r --page-requisites  'dowload.html https://www.mysite.com/docs//#!Mydocs;location=page1'
Run Code Online (Sandbox Code Playgroud)