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 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-video-crawler

v1.0.2

Published

An n8n node to search and crawl popular short videos from platforms like Douyin

Readme

n8n-nodes-video-crawler

这是一个用于n8n的短视频爬虫插件,支持根据关键词搜索并抓取抖音等短视频平台的热门视频。

功能特点

  • 🔍 关键词搜索: 支持自定义搜索关键词
  • 📊 多种排序: 综合排序、最新发布、最多点赞
  • 时间筛选: 不限、一天内、一周内、半年内
  • ⏱️ 时长筛选: 不限、1分钟以下、1-5分钟、5分钟以上
  • 🎯 搜索范围: 不限、关注的人、最近看过、还未看过
  • 📥 批量抓取: 支持批量抓取视频信息(4的倍数)
  • 💾 视频下载: 可选择下载视频到本地
  • 🛡️ 反爬虫保护: 每12个视频自动添加1-3秒随机延迟

安装

npm install n8n-nodes-video-crawler

配置

凭据配置(可选)

  • 平台名称: 抖音/快手/视频号
  • 用户名/手机号: 登录账号
  • 验证码/密码: 登录凭证

节点参数

  • 搜索关键词: 要搜索的视频关键词(必填)
  • 排序方式: 综合排序、最新发布、最多点赞
  • 发布时间: 不限、一天内、一周内、半年内
  • 视频时长: 不限、1分钟以下、1-5分钟、5分钟以上
  • 搜索范围: 不限、关注的人、最近看过、还未看过
  • 视频数量: 要抓取的视频数量(必须是4的倍数)
  • 是否下载视频: 是否下载视频到本地
  • 下载路径: 视频保存路径(仅在下载时需要)

高级选项

  • 浏览器无头模式: 是否后台运行浏览器
  • 页面加载超时: 页面加载超时时间(毫秒)
  • 滚动次数: 页面向下滚动次数以加载更多视频

使用示例

  1. 在n8n中添加 "Video Crawler" 节点
  2. 配置搜索关键词,例如:"AI智能体"
  3. 设置视频数量,例如:12
  4. 选择是否下载视频
  5. 执行工作流

输出格式

每个视频作为独立的输出项,包含以下信息:

{
  "title": "视频标题",
  "author": "作者名称",
  "authorUrl": "作者主页",
  "videoUrl": "视频链接",
  "coverUrl": "封面图片",
  "likeCount": "点赞数",
  "commentCount": "评论数",
  "shareCount": "分享数",
  "duration": "视频时长",
  "publishTime": "发布时间",
  "description": "视频描述"
}

注意事项

  1. 视频数量必须是4的倍数(如12、16、20、24等)
  2. 使用反爬虫保护机制,每12个视频会自动延迟1-3秒
  3. 建议使用无头模式运行以提高性能
  4. 视频下载功能需要额外的URL解析实现

开发

# 安装依赖
npm install

# 构建
npm run build

# 开发模式
npm run dev

# 代码检查
npm run lint

许可证

MIT

作者

hebing