下载完整的网页(不是网站)

AnC*_*AnC 1 bash web

我经常使用离线时间(例如在汽车/火车/飞机上)阅读从网络上提取的文章。为了存储内容,我目前使用 Firefox 的Save Page As。(请注意,这不是递归下载整个网站,而是单个页面及其样式、图像等。)

我已经研究过自动化,但是 wget 和 HTTrack 都没有给我我需要的东西(要么太多要么太少 - 甚至两者都有)。

任何建议将是最受欢迎的!

the*_*ive 6

你试过wget --page-requisites吗?

       This option causes Wget to download all the files that are neces?
       sary to properly display a given HTML page.  This includes such
       things as inlined images, sounds, and referenced stylesheets.
Run Code Online (Sandbox Code Playgroud)