利用curl命令可以把网页最终的渲染html代码写入文件: curl https://www.hao123.com > hao123.txt curl https://www.hao123.com >hao123.html