JSPM

whistle.qpic-autosave

0.0.3-1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q18876F
  • License ISC

微信图文中的图片 自动保存指定抓包数据到本地目录

Package Exports

  • whistle.qpic-autosave
  • whistle.qpic-autosave/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (whistle.qpic-autosave) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

whistle.qpic-autosave

Feature

  • 微信图文中的图片 自动保存指定的本地目录

    通过 库 kevva/download: Download and extract files (github.com) 实现了下载图片的功能

    • response中带的数据自动转换成图片,可以参考上面的库来实现
  • 修改 mmbiz.qpic.cn referer://https://mp.weixin.qq.com/ ,这个可以非微信域名下加载微信的图片了,方便调试

安装

  1. 该应用是whistle插件,需要先安装whistle:https://github.com/avwo/whistle

  2. 安装插件:

    npm i -g whistle.qpic-autosave

    推荐使用淘宝镜像: npm i -g whistle.qpic-autosave --registry=https://registry.npm.taobao.org

  3. 安装后通过whistle的管理界面打开配置界面: autosave插件管理界面

    整个插件 copy了官方的 whistle-plugins/whistle.autosave: 自动保存指定抓包数据到本地目录 (github.com) 修改了针对微信图片SVG场景下的图片自动下载保存和和微信图片的本地开发环境预览效果

Reference

  1. avwo/whistle: HTTP, HTTP2, HTTPS, Websocket debugging proxy (github.com)
  2. 插件开发 · GitBook (wproxy.org)
  3. whistle-plugins/whistle.autosave: 自动保存指定抓包数据到本地目录 (github.com)
  4. kevva/download: Download and extract files (github.com)