Application of wget to “Save As Complete Web Page”

人走茶凉 提交于 2019-12-10 17:39:37

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/8277901/application-of-wget-to-save-as-complete-web-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!