whistle.qpic-autosave

0.0.3-1 • Public • Published

whistle.qpic-autosave

Feature

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

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

    • [ ] response中带的数据自动转换成图片,可以参考上面的库来实现
  • [x] 修改 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)

Package Sidebar

Install

npm i whistle.qpic-autosave

Weekly Downloads

0

Version

0.0.3-1

License

ISC

Unpacked Size

105 kB

Total Files

15

Last publish

Collaborators

  • sumaolin