Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jooooock/wechat-article-exporter

微信公众号文章导出工具,100%还原原文样式
https://github.com/jooooock/wechat-article-exporter

Last synced: 28 days ago
JSON representation

微信公众号文章导出工具,100%还原原文样式

Awesome Lists containing this project

README

        

# wechat-article-exporter
微信公众号文章导出工具

> 受 [WeChat_Article](https://github.com/1061700625/WeChat_Article) 项目的启发所写

## Features

- [x] 搜索公众号
- [x] 搜索公众号内文章
- [x] 导出文章 html (打包了图片和样式文件,能够保证100%还原文章样式)
- [x] 批量导出公众号文章 html
- [x] 缓存文章列表数据,减少接口请求次数 (关键字搜索的文章不会进入缓存)
- [x] 缓存样式文件,加快文章下载速度
- [x] 过滤已删除文章
- [ ] 公众号加入收藏列表
- [ ] 支持图片分享消息

## 如何使用?

### 1. 注册一个微信公众号 (已有账号的话跳过)

前往 [微信公众平台](https://mp.weixin.qq.com/cgi-bin/registermidpage?action=index&lang=zh_CN) 注册,服务号和订阅号皆可。

### 2. 二维码扫码登录

进入 [登录页面](https://wechat-article-exporter.deno.dev/login),用微信扫描页面上的二维码,然后选择自己的公众号进行登录。

### 3. 搜索目标公众号,开始下载文章

通过左上角的公众号切换按钮,搜索自己感兴趣的公众号,如下图所示:

![切换账号](assets/switch-account.png)

搜索示例:

![搜索公众号](assets/search-account-sample.png)

## 关于批量导出

由于微信对相关接口有额度/频率的调用限制,所以批量导出功能并不会去批量获取新的数据,仅仅是将已缓存的数据导出。由于翻页时已经将数据进行了缓存,所以批量导出的数据即页面所显示的数据。

## 原理

在公众号后台写文章时支持搜索其他公众号的文章功能,以此来实现抓取指定公众号所有文章的目的,如下图所示:

![公众号后台搜索文章](assets/search-article.png)

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=jooooock/wechat-article-exporter&type=Timeline)](https://star-history.com/#jooooock/wechat-article-exporter&Timeline)

## License

MIT