将wget应用于“另存为完整网页”; [英] Application of wget to "Save As Complete Web Page"

查看:334
本文介绍了将wget应用于“另存为完整网页”;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以获取网页并获得与浏览器命令另存为完整网页(Chrome或Firefox)相同的精确结果(.htm文件)?

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)?

我找不到能正确执行的wget的任何配置。我对自动保存动态数据很感兴趣。
该网页如下:

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

现在,我已经通过Java鼠标/键盘控件自动执行了另存为浏览器命令,但是效率很低并在30/40分钟后产生崩溃。

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.

推荐答案

尝试以下操作:

$ 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

这篇关于将wget应用于“另存为完整网页”;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆