我尝试使用此命令下载 html 文件:
wget -r --page-requisites dowload.html https://www.mysite.com/docs//#!Mydocs;location=page1
这给我下一个错误:
-bash: !MyDocs: event not found
如何使用 wget 获取包含 # 的地址?
最佳答案
将 URL 括在单引号中。这会阻止 shell 解析内容。
wget -r --page-requisites 'dowload.html https://www.mysite.com/docs//#!Mydocs;location=page1'
关于html - 使用 wget 作为地址,其中包括 #,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15356030/