npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

koishi-plugin-weibo-fetcher

v0.1.3

Published

一个微博内容获取与订阅的 Koishi 插件,支持链接实时解析和用户后台订阅推送。

Readme

Koishi Plugin: Weibo Fetcher

npm LICENSE

A Koishi plugin to fetch and subscribe to Weibo posts using Puppeteer.

使用 Puppeteer 解析和订阅微博动态的 Koishi 插件。

✨ 功能特性

  • 链接解析: 自动识别聊天中发送的微博链接,并抓取内容进行发送。
  • 用户订阅: 支持配置订阅微博用户,定时检查更新并推送到指定群组。
  • Puppeteer: 完全依赖 Puppeteer 进行页面抓取,无需依赖任何第三方 API。
  • PC版网页: 基于微博 PC 网页版 (weibo.com) 进行解析,结构相对稳定。

💿 安装

  1. 前往 Koishi 插件市场搜索并安装 weibo-fetcher

  2. 安装前置依赖插件: 本插件依赖 databasepuppeteer 服务。请确保您已至少安装并启用了以下插件:

    • koishi-plugin-puppeteer
    • 一款数据库插件 (例如: koishi-plugin-database-sqlite)

📖 使用与配置

启用插件后,随意发送一个微博链接,插件就会开始自动解析并返回内容。请根据您的需求在插件配置页面进行详细设置。

关键配置项说明

  • cookie: 【非必要可选项】微博 Cookie 。
  • splitMessages (分条发送): 强烈建议开启此项。开启后,文本、截图和每张图片都会作为独立消息发送,可以有效解决因截图或图片过多导致单条消息过大而发送失败的问题。
  • 订阅设置:
    • uid: 微博用户的数字 ID,是其主页 URL weibo.com/u/{uid} 中的数字部分。
    • channelIds: 需要接收推送的群组/频道 ID 列表。
  • 测试微博推送 指令权限: 可自定义触发强制推送指令所需的最低权限等级,默认为 2 (管理员)。

指令系统

  • 测试微博推送: (需要相应权限) 强制将所有订阅用户的最新微博内容推送到其目标群组,用于调试和效果预览。

⚠️ 免责声明

  • 本插件仅供学习和技术研究使用,旨在探索 Koishi 插件开发与 Web 数据抓取技术。
  • 用户通过本插件获取的所有内容均来自公开的网页来源,插件本身不生产、不存储任何微博内容。所有内容的版权归原作者和微博平台所有。
  • 使用本插件产生的任何风险和后果(包括但不限于因频繁请求导致的账号限制)由使用者自行承担。开发者不对任何由此产生的问题负责。
  • 请在遵守相关法律法规和网站用户协议的前提下使用本插件。

📄 开源许可

This project is licensed under the MIT License.

Copyright © 2025 WhiteBr1ck