Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Windows 用户,想使用以下脚本执行爬网(我下载了 wget 和 egrep)
wget --quiet http://example.com/sitemap.xml --output-document - | egrep -o "http://example.com[^<]+" | wget -q --delete-after -i -
但是无法识别 egrep 选项,您能建议吗?谢谢
这是一个 Unix 命令行。尝试安装 cygwin 或 git-bash 打开一个 bash 窗口并从那里运行命令。