← 返回 Skills 市场
marlowne12

Clickbank Scraper

作者 marlowne12 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
94
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install clickbank-scraper
功能描述
Scrape top ClickBank products by category with gravity scores, commission rates, and estimated monthly sales. Integrates with affiliate marketing automation...
使用说明 (SKILL.md)

ClickBank Product Scraper

Autonomous scraper for high-performing ClickBank products. Pulls product metadata (gravity, commission, sales estimates) from CBTrends.com and exports structured JSON for pipeline integration.

Installation

npm install

Dependencies:

  • cheerio — HTML parsing
  • node-fetch — HTTP requests
  • node ≥ v16

Usage

Basic Run

node scraper.js

Outputs to output/latest.json, output/products-YYYY-MM-DD.json

With ClickBank Affiliate ID

CB_AFFILIATE_ID=your_nickname node scraper.js

Generates hoplinks with your affiliate ID embedded.

Scheduled Runs

Use OpenClaw cron or n8n workflows to run daily:

{
  "job": "clickbank-scraper",
  "schedule": "0 9 * * *",
  "command": "CB_AFFILIATE_ID=your_id node scraper.js"
}

Output Format

latest.json

Always-current snapshot for real-time pipeline feeds.

{
  "category": "Health & Fitness",
  "updatedAt": "2026-03-27T14:00:00Z",
  "products": [
    {
      "name": "Product Name",
      "vendorId": "vendor123",
      "gravity": 87.5,
      "avgSaleAmount": "$47.00",
      "commissionPct": 75,
      "rebillPct": 30,
      "hoplink": "https://yourname.clickbank.net/...",
      "estimatedMonthlySales": "$12000"
    }
  ]
}

products-YYYY-MM-DD.json

Full daily archive for historical analysis.

top10-YYYY-MM-DD.json

Filtered to gravity > 50 for quick high-performers reference.

Integration Use Cases

1. Pinterest Board Automation

Feed latest.json → n8n workflow → Auto-generate Pinterest pins for top 10 products

2. Product Comparison Content

Extract gravity + commission → Generate comparison tables for blog posts

3. Affiliate Performance Tracking

Monitor gravity trends over time → Pivot to rising winners

4. Landing Page Personalization

Cross-reference user interests → Recommend high-gravity products

Data Fields Reference

Field Type Description
name string Product name
vendorId string ClickBank vendor identifier
gravity number Affiliate gravity (higher = more demand, 0-100+)
avgSaleAmount string Average transaction value
commissionPct number Commission rate (0-100%)
rebillPct number Rebill/recurring commission %
hoplink string Ready-to-use affiliate link
estimatedMonthlySales string Rough sales estimate

Limitations

  • Single page per category (10 products) from CBTrends
  • Gravity data may lag 1-2 hours behind ClickBank live marketplace
  • No API key required (scrapes public data)
  • Categories limited to: Health & Fitness, Supplements, E-Business, Self-Help

Roadmap

  • Health & Fitness category scraper
  • Multi-category support (Supplements, Self-Help, E-Business, Investing)
  • Pagination (pages 2-5 for 50+ products)
  • ClickBank Marketplace API integration (when account active)
  • Scheduled runs via cron
  • Gravity trend tracking over time
  • Email digest of top gainers/losers

Integration with n8n

Example n8n workflow node:

// n8n "Execute Command" node
const exec = require('child_process').execSync;
const result = exec('CB_AFFILIATE_ID=your_id node scraper.js', {
  cwd: '/path/to/clickbank-scraper'
});
return JSON.parse(result.toString());

Integration with OpenClaw

Use as a cron job or sub-agent:

openclaw cron add clickbank-scraper \
  --schedule "0 9 * * *" \
  --command "cd path/to/scraper && node scraper.js"

Author

Max @ max-co.digital — Autonomous ClickBank affiliate marketing automation.

License

Proprietary — Part of Digital Helper Agency / max-co product suite.

安全使用建议
This skill appears to do what it says (scrape CBTrends and emit JSON), but before installing/running: 1) Run it in an isolated environment (container or sandbox) because it performs network scraping and executes Node code. 2) Address the Node/dependency mismatch: package-lock/cheerio indicate Node >= 20.18.1 while SKILL.md says >=16, and scraper.js uses global fetch without importing node-fetch — upgrade Node to a version with global fetch (Node 18+), or add a require('node-fetch') call to the code. 3) If you provide CB_AFFILIATE_ID, remember outputs and downstream integrations will contain your affiliate ID (treat as sensitive). 4) Check CBTrends/ClickBank terms of service and robots.txt to ensure scraping is allowed and avoid legal/IP issues. 5) Inspect and test the script locally (npm install, run once) and run npm audit to check dependency vulnerabilities before using it in production. If you need certainty this is safe, ask the author to fix the Node/fetch inconsistency and to document the exact Node version required.
功能分析
Type: OpenClaw Skill Name: clickbank-scraper Version: 1.0.0 The bundle is a legitimate web scraper designed to extract ClickBank product data from CBTrends.com for affiliate marketing automation. The code in scraper.js uses standard libraries (cheerio and node-fetch) to parse public HTML content and save structured JSON data to a local directory. No evidence of data exfiltration, malicious execution, or prompt injection was found; the use of environment variables for affiliate IDs is consistent with the stated purpose.
能力评估
Purpose & Capability
Name/description match the code and SKILL.md: the package scrapes CBTrends for ClickBank product metadata, builds hoplinks, and writes JSON outputs for pipelines. The requested artifacts (output files, affiliate-id embedding) are consistent with the stated affiliate-marketing use.
Instruction Scope
SKILL.md instructs running node scraper.js and embedding CB_AFFILIATE_ID for hoplinks; the code scrapes one CBTrends URL and writes local JSON files only. Concerns: the script uses the global fetch() without requiring/importing node-fetch (so it relies on Node's built-in global fetch), but the README/SKILL.md and package.json list node-fetch as a dependency — this is a runtime inconsistency that may break on some Node versions. SKILL.md also includes an n8n example that runs a shell execSync command to run the scraper; executing arbitrary shell commands in integrations is expected but should be run in a controlled/isolated environment.
Install Mechanism
No automated install spec (instruction-only), which is low risk. Dependencies come from npm (cheerio, node-fetch) — standard for a scraper. However package-lock indicates cheerio's engines require Node >= 20.18.1, while SKILL.md claims node >=16 — this Node version mismatch could cause install/runtime failures and should be reconciled before deployment.
Credentials
No required secrets or config paths are declared. The only environment variable used is optional CB_AFFILIATE_ID to generate hoplinks; that is proportional to the stated purpose. Note: embedding your affiliate ID means generated JSON and any downstream systems will contain that identifier — treat it as a privacy/marketing secret if you don't want it exposed.
Persistence & Privilege
Skill is not always-enabled and does not request elevated or persistent system privileges. It writes only to its own output directory and does not modify other skills or system configuration. Autonomous invocation is allowed (platform default) but the skill itself does not request forced presence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clickbank-scraper
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clickbank-scraper 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
ClickBank product scraper with gravity scoring and affiliate link generation
元数据
Slug clickbank-scraper
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Clickbank Scraper 是什么?

Scrape top ClickBank products by category with gravity scores, commission rates, and estimated monthly sales. Integrates with affiliate marketing automation... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。

如何安装 Clickbank Scraper?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clickbank-scraper」即可一键安装,无需额外配置。

Clickbank Scraper 是免费的吗?

是的,Clickbank Scraper 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Clickbank Scraper 支持哪些平台?

Clickbank Scraper 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Clickbank Scraper?

由 marlowne12(@marlowne12)开发并维护,当前版本 v1.0.0。

💬 留言讨论