del-weibo:一键和过去的微博告别del-weibo: Saying Goodbye to Old Weibo Posts, in One Click
人长大了,想清理一下年轻时发的微博。一条条删?几千条删到天荒地老。根据项目记录推测,作者(或者作者的朋友)有过这种需求,于是写了个脚本一次搞定。Tampermonkey(油猴)用户脚本,基于微博网页版官方接口:You grow up and want to clean up the Weibo posts from your younger days. Delete them one by one? Thousands of posts until the end of time. Inferred: the author (or a friend) had th…
del-weibo:一键和过去的微博告别
本文根据 GitHub 仓库 xueze-ai/del-weibo 的 README 整理。无确切记录之处已标注"根据项目记录推测"或"待补充"。
为什么做
人长大了,想清理一下年轻时发的微博。一条条删?几千条删到天荒地老。根据项目记录推测,作者(或者作者的朋友)有过这种需求,于是写了个脚本一次搞定。
怎么做
Tampermonkey(油猴)用户脚本,基于微博网页版官方接口:
- 一键批量删除自己的博文(含转发)
- 批量取消关注
README 开头就是"使用前必读":删除后无法恢复,微博没有回收站。第一次使用必须先开"试运行"看清单,确认无误再真实操作。这种对破坏性操作的敬畏心,是个好习惯。
技术选择
- Tampermonkey 用户脚本:不用装软件,浏览器里就能跑
- 走官方接口:比爬虫稳定,不容易被封
- 不收集数据:所有请求由用户浏览器直接发往 weibo.com,脚本不上传任何东西
踩过的坑
根据项目记录推测:微博网页版接口经常变,脚本需要跟着适配;批量操作还得控制频率,太快会被限流。待补充:具体适配了哪些接口版本。
现在的状态
- 仓库:xueze-ai/del-weibo
- 许可:MIT
- 支持:Chrome / Edge / Firefox(Tampermonkey 4.0+)
告别过去,有时候需要一点工具。删掉的是博文,留下的是体面。
del-weibo: Saying Goodbye to Old Weibo Posts, in One Click
Compiled from the GitHub repo xueze-ai/del-weibo's README. Uncertain parts marked "inferred from project records" or "to be added".
Why build it
You grow up and want to clean up the Weibo posts from your younger days. Delete them one by one? Thousands of posts until the end of time. Inferred: the author (or a friend) had this need, so they wrote a script to do it all at once.
How it works
A Tampermonkey userscript built on Weibo's official web APIs:
- One-click batch deletion of your own posts (including reposts)
- Batch unfollowing
The README opens with "read before use": deletion is irreversible, Weibo has no recycle bin. First use must stay in "dry run" mode to review the list before doing it for real. That respect for destructive operations is a good habit.
Tech choices
- Tampermonkey userscript: no software to install, runs in the browser
- Official APIs: more stable than scraping, less likely to get blocked
- No data collection: all requests go from your browser straight to weibo.com; the script uploads nothing
Pitfalls
Inferred: Weibo's web APIs change often, so the script needs constant adaptation; batch operations also need rate control to avoid throttling. To be added: which API versions were adapted.
Current status
- Repo: xueze-ai/del-weibo
- License: MIT
- Supports: Chrome / Edge / Firefox (Tampermonkey 4.0+)
Saying goodbye to the past sometimes needs a tool. What gets deleted are posts; what stays is dignity.