Skip to content
No description, website, or topics provided.
Branch: master
Clone or download

Readme.md

Tieba => Markdown

Site LICENSE LICENSE

保存贴吧的精品文章, 转化为 markdown 格式.

Tutorial

使用 npmyarn 安装

yarn add @vutex/wapp2md
npm install @vutex/wapp2md

然后输入帖子 id 就能下载并转换为 markdown 文件了.

import { writeFileSync } from 'fs'
import { parserPage } from '@vutex/wapp2md'
parserPage(5544838611).then($ => { writeFileSync(`${__dirname}/5544838611.md`, $) })

网页: http://tieba.baidu.com/p/5544838611

脚本: https://github.com/uupers/save-tieba/blob/master/projects/wapp2md/test/page.ts

效果: https://github.com/uupers/save-tieba/blob/master/projects/wapp2md/test/5544838611.md

You can’t perform that action at this time.