网淘吧来吧,欢迎您!

返回首页 微信
微信
手机版
手机版

Wechat Article Search

2026-03-27 新闻来源:网淘吧 围观:10
电脑广告
手机广告

微信公众号文章搜索说明

适用场景

  • 用户说“帮我搜某个关键词的公众号文章/最近文章”
  • 需要快速拿到:标题、摘要、发布时间、公众号名称、可访问链接

工作流程

步骤1: 确认已安装依赖包

该脚本依赖NodeJS依赖包cheerio,建议先执行全局安装或在项目中安装:

npm install -g cheerio

步骤2: 确认搜索词语数量

1、 确认关键词与数量

步骤3: 执行搜索命令

1、执行常规搜索命令

node scripts/search_wechat.js "关键词" 

特殊流程(可选)

  1. 执行包含数量限制的搜索命令
node scripts/search_wechat.js "关键词"  -n 15
  1. 如果用户需要保存结果到文件,执行命令
node scripts/search_wechat.js "关键词" -n 20 -o result.json
  1. 若想要获取微信文章域名的真实链接”,执行如下命令
node scripts/search_wechat.js "关键词" -n 5 -r

参数说明

  • query:搜索关键词(必填)
  • -n, --num:返回数量(默认 10,最大 50)
  • -o, --output:输出 JSON 文件路径(可选)
  • -r, --resolve-urlAttempt to resolve intermediate links into actual WeChat article links (additional requests will be made for each result)

Output fields (article object)

Article title, article URL, article summary, publication time, source official account name

Common issue handling

  • No results: Try changing keywords, using fewer special characters, or retrying later
  • Failed to resolve actual URL: This is common (due to anti-crawling restrictions); users can be prompted to open the intermediate link in a browser

Notes

  • This tool is intended for learning and research purposes only. Do not use it for commercial purposes or large-scale data scraping.
  • Please comply with the terms of use and regulations of the relevant websites when using this tool.
  • Excessive use may result in IP bans. Please use with caution.

天猫隐藏优惠券

网淘吧

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏
文章底部电脑广告
手机广告位-内容正文底部
上一篇:Tavily Search Pro 下一篇:Mcp Integration

相关文章

您是本站第292823名访客 今日有299篇新文章/评论