应用wget“另存为完整网页”

发布于 2024-12-18 04:07:54 字数 443 浏览 7 评论 0原文

有没有办法 wget-ing 网页并获得与浏览器命令“另存为完整网页”(Chrome 或 Firefox)相同的精确结果(即 .htm 文件)?

我无法找到任何可以正确执行此操作的 wget 配置。我对自动保存动态数据感兴趣。 网页如下:

http://football.bettor.com/barclays-premier-league-winner-2011-12-betting-odds/2011-11-19/market/652852

现在,我已经通过java鼠标/键盘控制自动化“另存为”浏览器命令,但效率极低,并且在30/40分钟后会崩溃。

Is there a way to wget-ing a web page and obtaining the same exact result (that is a .htm file) as with the browser command "Save As Complete Web Page" (Chrome or Firefox)?

I was not able to find any configuration of wget that does it correctly. I'm interesting in saving automatically dynamic data.
The web page is the following:

http://football.bettor.com/barclays-premier-league-winner-2011-12-betting-odds/2011-11-19/market/652852

Now, I've automatized the Save As browser command through java mouse/keyboard control, but it is strongly inefficient and produces crashes after a 30/40 minutes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深海不蓝 2024-12-25 04:07:54

试试这个:

$ wget --verbose --page-requisites --convert-links --adjust-extension --force-directories \
  http://football.bettor.com/barclays-premier-league-winner-2011-12-betting-odds/2011-11-19/market/652852

Try this:

$ wget --verbose --page-requisites --convert-links --adjust-extension --force-directories \
  http://football.bettor.com/barclays-premier-league-winner-2011-12-betting-odds/2011-11-19/market/652852
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文