• 请不要在回答技术问题时复制粘贴 AI 生成的内容
layman3612
V2EX  ›  程序员

求推荐网页下载工具

  •  
  •   layman3612 · Aug 27, 2019 · 5203 views
    This topic created in 2638 days ago, the information mentioned may be changed or developed.

    大家有没有用过,可以把网站下载成本地文件,并可断网访问的工具。 试过一些,只能支持静态网站,都无法支持 js 生成的动态内容

    18 replies  •  2022-03-02 11:59:47 +08:00
    lazyrm
    lazyrm
    Aug 27, 2019❤️1
    1
    webcopy 要不要试试看?
    annielong
    annielong
    Aug 27, 2019
    2
    以前这个叫离线网页浏览器,用 js 生成页面的这种用采集自己生成
    SuperMild
    SuperMild
    Aug 27, 2019
    3
    如果只是单页可以用 SingleFileZ
    deco
    deco
    Aug 27, 2019
    4
    ctrl+s ?
    GzhiYi
    GzhiYi
    Aug 27, 2019 via iPhone
    5
    httarck
    chocolatesir
    chocolatesir
    Aug 27, 2019
    6
    火车头
    MzM2ODkx
    MzM2ODkx
    Aug 27, 2019
    7
    前几天写了个 node 工具,自己用随便写的就不献丑了。我用到了 puppeteer,通过`performance.getEntriesByType('resource').map(x => x.name)`拿到页面上的资源地址。
    helenhe
    helenhe
    Aug 27, 2019
    8
    @deco 并不能,下午 down 了 CSDN 的网页,就是给你跳转到首页去
    shakaraka
    shakaraka
    Aug 27, 2019
    9
    现在格局变了,不再是以前那种静态页了,现在基本都是各种 js 渲染,前端路由,前端路由守护,数据都是从 api 过来,页面相关签名验证之类的不通的话直接就跳首页或者 403 了,现在没有所谓的网页下载这个概念了的,非要的话我是建议你截图就行了
    ben1024
    ben1024
    Aug 27, 2019
    10
    毛遂自荐 [Cornerstone]( https://github.com/MasterCloner/Cornerstone)
    支持同步 /异步渲染获取 JS 加载后的界面
    Buges
    Buges
    Aug 27, 2019 via Android
    11
    建议直接 print 成 pdf 文件保存比较恰当。
    atx
    atx
    Aug 27, 2019
    12
    @helenhe @deco 报存成 mhtml, chrome 默认没开需要开启一下(高版本好像又不一样了) 搞不懂 chrome 这波操作图什么
    luckrill
    luckrill
    Aug 27, 2019
    13
    wget 我一直使用这个
    有特殊需求的,就自己开发
    nieccyyy
    nieccyyy
    Aug 28, 2019
    14
    @helenhe csdn 有防镜像代码,会跳会首页是因为这货:onerror='setTimeout(function(){if(!/(csdn.net|iteye.com|baiducontent.com|googleusercontent.com|360webcache.com|sogoucdn.com|bingj.com|baidu.com)$/.test(window.location.hostname)){window.location.href="\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77\x77\x2e\x63\x73\x64\x6e\x2e\x6e\x65\x74"}},3000);
    arrow8899
    arrow8899
    Aug 28, 2019
    15
    得看你的原始需求是什么,如果只是能查看页面的话,那么截图或 pdf 最方便;
    至于更复杂的,可以用 puppeteer 或 selenium 等工具,把渲染后的 html 页面、css、图片、字体、SVG 等保存下来,不过估计坑很多。
    qindamao
    qindamao
    Mar 2, 2022
    18
    谷歌或百度关键字 小猿助理
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1007 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 64ms · UTC 19:01 · PVG 03:01 · LAX 11:01 · JFK 14:01
    ♥ Do have faith in what you're doing.