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

wechat-get

v1.1.2

Published

微信文章获取工具,支持批量抓取与 Markdown 输出

Readme

🚀 wechat-get - 微信文章获取工具

npm version License: MIT

突破微信验证限制,一键获取公众号完整原文

✨ 特性

  • 🎯 一键安装 - npm install,无需配置
  • 🛡️ 突破验证 - 多层技术突破微信反爬虫机制
  • 📱 跨平台 - 支持 Windows、macOS、Linux
  • 🚀 简单易用 - 一个命令搞定:npx wechat-get URL
  • 📊 批量处理 - 支持批量获取多篇文章
  • 🎨 精美的CLI - 彩色输出、进度显示
  • 📦 多种格式 - 支持 JSON、TXT 导出

🚀 快速开始

安装

# 全局安装
npm install -g wechat-get

# 或者临时使用 (推荐)
npx wechat-get <URL>

基础用法

# 获取单个文章
npx wechat-get "https://mp.weixin.qq.com/s/文章ID"

# 简化命令
npx wg "https://mp.weixin.qq.com/s/文章ID"

# 保存为特定文件名
npx wechat-get "URL" -o my-article

# 指定输出目录
npx wechat-get "URL" -d ./articles

高级用法

# 批量获取
npx wechat-get --batch urls.txt

# 静默模式
npx wechat-get "URL" --quiet

# 详细模式
npx wechat-get "URL" --verbose

📖 使用示例

1. 获取单个文章

npx wechat-get "https://mp.weixin.qq.com/s/NnFIQ70s1F75bYzwueiDwA"

2. 批量处理

创建 urls.txt 文件:

https://mp.weixin.qq.com/s/article1
https://mp.weixin.qq.com/s/article2
https://mp.weixin.qq.com/s/article3

运行批量获取:

npx wechat-get --batch urls.txt -d ./my_articles

3. 编程接口

const WeChatScraper = require('wechat-get');

const scraper = new WeChatScraper();

// 获取单个文章
const result = await scraper.getArticle('https://mp.weixin.qq.com/s/xxx');

console.log(result.title);
console.log(result.content);

🛠️ API 文档

Constructor

new WeChatScraper(options)

Options:

  • timeout (Number): 请求超时时间,默认 30000ms
  • retryCount (Number): 重试次数,默认 3
  • delay (Number): 请求间隔,默认 2000ms

Methods

getArticle(url)

获取单个微信文章。

Returns:

{
  title: '文章标题',
  content: '文章内容',
  success: true/false
}

🔧 技术原理

本项目采用多层突破策略

  1. 高级隐身攻击 - 完美模拟真实微信客户端
  2. 智能重试机制 - 自动应对验证升级
  3. 动态Cookie生成 - 自适应反爬虫机制

🌍 兼容性

  • ✅ Node.js 14+
  • ✅ npm 6+
  • ✅ Windows 10+
  • ✅ macOS 10.14+
  • ✅ Ubuntu 18.04+

📄 许可证

MIT License - 详见 LICENSE 文件

🤝 贡献

欢迎提交 Issue 和 Pull Request!

⚡ 更新日志

v1.0.0 (2024-12-09)

  • 🎉 首次发布
  • ✨ 支持微信文章获取
  • 🛡️ 突破验证机制
  • 📱 多平台支持

📞 支持


⭐ 如果这个项目对你有帮助,请给个 Star!

让知识获取更加自由,让学习不再有限制 🚊