我需要从命令提示符运行网页的 html 内容,是否可以通过从命令提示符运行来打开网页并获取该网页的 html 内容?
答案1
使用wget
(您可能必须sudo apt install wget
)。
GNU Wget is a free utility for non-interactive download of files from the Web. It
supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.