MCPcopy Index your code
hub / github.com/Chilfish/Weibo-archiver

github.com/Chilfish/Weibo-archiver @v0.6.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.6.2 ↗ · + Follow
286 symbols 646 edges 118 files 27 documented · 9% updated 53d agov0.6.2 · 2025-06-28★ 47419 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

logo

<a href="https://deepwiki.com/Chilfish/Weibo-archiver"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
<img src="https://wakatime.com/badge/user/0842a71f-c026-4b09-8aa0-f8398b4c3423/project/3416f224-f0dc-4b08-805c-af30dbd396b2.svg" alt="wakatime">
<img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/chilfish/weibo-archiver">
<img alt="GitHub Downloads" src="https://img.shields.io/github/downloads/chilfish/weibo-archiver/total">
<img alt="beta build" src="https://github.com/Chilfish/Weibo-archiver/actions/workflows/beta-build.yml/badge.svg">

Weibo-archiver

将你的新浪微博回忆归档,为号被完全夹没前未雨绸缪 😭 官网:weibo-archiver.chilfish.top

封面

使用方式

可以详见 在线文档 说明

旧版本可见 v0.5 分支 或是 https://weibo.chilfish.top/ ,可见 文档:从旧版本迁移 部分说明

对开发者

项目采用 monorepo 的结构,使用 pnpm 管理,因此需要先安装 pnpm:npm i -g pnpm

在 packages 目录下:

  • /core 包含了工具函数、数据处理的核心

在 apps 目录下,为最终的应用

  • /web 是用于最终查看微博数据的网页,目前托管在 vercel
  • /monkey 用于打包成油猴脚本
  • /cli Nodejs 命令行版本

直接部署到 vercel 前,需要先去 vercel 的项目设置中将 Root Directory 设为 apps/web-v2,才能正确识别项目并构建

在 server 目录下是使用 go 语言编写的一个本地服务器,用于下载图片和浏览微博数据,具体使用方法可见 本地服务器使用说明

鸣谢

  • 感谢 speechless 提供的基本思路
  • vite-plugin-monkey 提供了打包成油猴脚本的工具
  • Shadcn/ui 提供的漂亮 UI 组件库
  • vercel 提供的在线云平台部署😚
  • Github Copilot & v0.dev 😇

赞助

如果你觉得这个项目对你有帮助,可以考虑赞助v我😇这将给我更多的动力来维护这个项目:赞助地址

Extension points exported contracts — how you extend this code

FetchConfig (Interface)
(no doc)
packages/core/src/types/index.ts
ProgressOptions (Interface)
(no doc)
apps/cli/src/utils/progress.ts
ImagePreviewEvent (Interface)
(no doc)
apps/web-v2/src/types.ts
FetchState (Interface)
(no doc)
apps/monkey/src/types/index.ts
UserConfig (Interface)
(no doc)
packages/core/src/types/index.ts
FetchState (Interface)
(no doc)
apps/cli/src/lib/FetchManager.ts
AlbumPreviewEvent (Interface)
(no doc)
apps/web-v2/src/types.ts
UserConfig (Interface)
(no doc)
apps/monkey/src/types/index.ts

Core symbols most depended-on inside this repo

Text
called by 8
apps/web-v2/src/components/followings/dataColumns.tsx
saveJson
called by 7
apps/cli/src/utils/file.ts
getAllPosts
called by 6
packages/core/src/utils/IndexedDB.ts
parse
called by 6
packages/core/src/services/parseService.ts
get
called by 6
apps/cli/src/lib/ConfigManager.ts
Close
called by 6
server/internal/utils/queue.go
pad
called by 5
packages/core/src/utils/format.ts
parseText
called by 5
packages/core/src/services/parseService.ts

Shape

Method 118
Function 116
Class 24
Interface 19
Struct 9

Languages

TypeScript83%
Go17%

Modules by API surface

packages/core/src/utils/IndexedDB.ts27 symbols
packages/core/src/services/parseService.ts23 symbols
packages/core/src/utils/pqueue.ts20 symbols
packages/core/src/services/postService.ts15 symbols
packages/core/src/services/fetchService.ts14 symbols
apps/web-v2/src/stores/postStore.ts13 symbols
apps/monkey/src/composables/usePost.ts11 symbols
server/internal/utils/downloader.go10 symbols
packages/core/src/services/userService.ts8 symbols
apps/cli/src/lib/ConfigManager.ts8 symbols
server/internal/ui/model.go7 symbols
apps/web-v2/src/composables/useSearch.ts7 symbols

For agents

$ claude mcp add Weibo-archiver \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page