Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计通过

rednote-contacts红记联系人

Agent Skill

rednote-contacts 用于处理浏览器自动化、网页检查和页面信息提取,适合在 OpenClaw 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,868

周安装

116

GitHub Stars

公开资料未说明

下载量

965
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:rednote-contacts(红记联系人)
来源仓库:https://github.com/batxent/rednote-contacts
安装命令:
openclaw skills install rednote-contacts
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install rednote-contacts

简介

运行已安装的 red-crawler CLI 进行小红书联系人发现。需要 red-crawler 命令和 Playwright 浏览器运行时;不只是指导。

SKILL.md

name
rednote_contacts
description
Run the installed red-crawler CLI for Xiaohongshu contact discovery. Requires the red-crawler command and Playwright browser runtime; not instruction-only.
homepage
https://github.com/Batxent/red-crawler
metadata
{"openclaw":{"runtime":"python","entry":"src/index.py","instructionOnly":false,"requiresBinaries":["red-crawler"],"requiresNetwork":true,"usesBrowserAutomation":true,"sensitiveLocalFiles":["Playwright storage state JSON"],"remoteRepositoryClone":false}}

red-crawler-ops

Use this skill when you need to operate the installed red-crawler CLI from an OpenClaw workflow. It is the portable wrapper for the crawler runtime, not a separate crawler implementation.

When To Use

Use red-crawler-ops for:

  • preparing a local working directory for red-crawler
  • crawling the default Xiaohongshu fashion homefeed
  • saving a login session into Playwright storage state
  • crawling a seed Xiaohongshu profile
  • running nightly collection against a workspace database
  • exporting a weekly report
  • listing contactable creators from the SQLite database

red-crawler CLI Commands

All crawling tasks must use the native red-crawler CLI commands:

1. crawl-homefeed (default)

Collect users from the Xiaohongshu fashion homefeed. This is the default crawl mode when action is omitted. It clicks card author links, not note links.

red-crawler crawl-homefeed \
  --homefeed-url "https://www.xiaohongshu.com/explore?channel_id=homefeed.fashion_v3" \
  --max-accounts 20 \
  --db-path "./data/red_crawler.db" \
  --output-dir "./output"

For IP rotation in local browser mode, provide proxy or proxy_list and set rotation_mode: session. The wrapper passes these through to red-crawler; after 403 or 429, the crawler starts a new browser session using the next proxy. Each proxy maps deterministically to one browser header set, so the same outbound IP keeps the same User-Agent.

Bright Data Browser API mode does not use local proxy settings. Use browser_mode: bright-data plus browser_auth or browser_endpoint; if either value contains {session}, the crawler replaces it with a random session id for each browser session.

2. crawl-seed

Crawl a specific Xiaohongshu user profile and extract contact information.

red-crawler crawl-seed \
  --seed-url "https://www.xiaohongshu.com/user/profile/USER_ID" \
  --max-accounts 5 \
  --max-depth 2 \
  --db-path "./data/red_crawler.db" \
  --output-dir "./output"

Parameters:

  • --seed-url (required): Target user profile URL
  • --storage-state: Optional Playwright storage state file
  • --max-accounts: Maximum accounts to crawl (default: 20)
  • --max-depth: Crawl depth for related accounts (default: 2)
  • --include-note-recommendations: Include note recommendations
  • --safe-mode: Enable safe mode
  • --cache-dir: Cache directory path
  • --cache-ttl-days: Cache TTL in days (default: 7)
  • --db-path: SQLite database path (default: ./data/red_crawler.db)
  • --output-dir: Output directory (default: ./output)

Outputs:

  • accounts.csv: Crawled account information
  • contact_leads.csv: Extracted contact information (emails, etc.)
  • run_report.json: Execution report

3. login

Optional interactive login to save browser session.

red-crawler login --save-state "./state.json"

Parameters:

  • --save-state (required): Path to save storage state
  • --login-url: Login page URL (default: https://www.xiaohongshu.com)

4. login-qr-start / login-qr-finish

QR code-based login for headless environments.

# Start QR login (generates QR code)
red-crawler login-qr-start \
  --save-state "./state.json" \
  --qr-path "./login-qr.png" \
  --session-path "./login-session.json" \
  --timeout 180

# Finish QR login after user scans
red-crawler login-qr-finish \
  --save-state "./state.json" \
  --session-path "./login-session.json"

5. collect-nightly

Run scheduled nightly data collection.

red-crawler collect-nightly \
  --db-path "./data/red_crawler.db" \
  --report-dir "./reports" \
  --crawl-budget 30 \
  --search-term-limit 4

Parameters:

  • --storage-state: Optional storage state file
  • --db-path: Database path (default: ./data/red_crawler.db)
  • --report-dir: Report directory (default: ./reports)
  • --cache-dir: Cache directory
  • --cache-ttl-days: Cache TTL (default: 7)
  • --crawl-budget: Crawl budget (default: 30)
  • --search-term-limit: Search term limit (default: 4)
  • --startup-jitter-minutes: Startup jitter
  • --slot-name: Slot name for scheduling

6. report-weekly

Export weekly reports from database.

red-crawler report-weekly \
  --db-path "./data/red_crawler.db" \
  --report-dir "./reports" \
  --days 7

Parameters:

  • --db-path: Database path (default: ./data/red_crawler.db)
  • --report-dir: Report directory (default: ./reports)
  • --days: Report period in days (default: 7)

Outputs:

  • weekly-growth-report.json
  • contactable_creators.csv

7. list-contactable

List contactable creators from database.

red-crawler list-contactable \
  --db-path "./data/red_crawler.db" \
  --lead-type "email" \
  --creator-segment "creator" \
  --min-relevance-score 0.5 \
  --limit 20 \
  --format csv

Parameters:

  • --db-path: Database path (default: ./data/red_crawler.db)
  • --lead-type: Lead type filter (default: email)
  • --creator-segment: Creator segment filter (default: creator)
  • --min-relevance-score: Minimum relevance score (default: 0.0)
  • --limit: Result limit (default: 20)
  • --format: Output format - table or csv (default: table)

8. open

Open Xiaohongshu in browser with saved session.

red-crawler open --storage-state "./state.json"

Supported Actions

  • bootstrap
  • crawl_homefeed (default when omitted)
  • crawl_seed
  • login
  • collect_nightly
  • report_weekly
  • list_contactable
  • job_status
  • job_logs
  • job_stop
  • ack_event

Long Running Crawls and Heartbeat

For long crawl actions, set run_mode: background. The skill starts a local background wrapper, returns a job_id immediately, and writes OpenClaw-readable state under heartbeat_dir (default ./.openclaw/red-crawler).

Background jobs write:

  • HEARTBEAT.md: concise status and pending user updates for OpenClaw heartbeat polling
  • jobs/<job_id>.json: machine-readable job state
  • events/<job_id>.jsonl: completion or failure events
  • logs/jobs/<job_id>.out.log and .err.log: crawler logs

Use job_status with the returned job_id to read the latest state manually. Use job_logs to inspect recent output and job_stop to request termination. If OpenClaw heartbeat polling is enabled, the agent can read HEARTBEAT.md and surface pending completion events to the user on a later heartbeat cycle. After surfacing an event, call ack_event with the event_id so the same update is not reported again.

Example Prompts

  • "帮我准备当前小红书爬虫项目的本地环境" (Automatically maps to bootstrap for an existing workspace)
  • "开始爬小红书彩妆博主" / "帮我抓取一批小红书博主" (Defaults to crawl_homefeed)
  • "我需要登录爬虫" / "我要登录小红书" (Automatically maps to login to fetch/refresh the Playwright session state)
  • "开始执行每日夜间数据整理" / "运行自动收集任务" (Automatically maps to collect_nightly to continue crawling based on the database queue)
  • "帮我生成一份本周的爬虫数据周报" (Automatically maps to report_weekly pointing to the workspace's DB)

Crawling New Data vs Querying Database:

  • "帮我从这个博主去爬10个相关的美妆博主: https://www.xiaohongshu.com/..." (Crawls NEW data: Automatically maps to crawl_seed with seed_url, setting max_accounts to 10. _Note: crawling new data requires a seed URL._)
  • "帮我从数据库/已爬取的数据中找出10个美妆/游戏/科技博主的联系方式" (Queries EXISTING DB: Automatically sets action to list_contactable, limit to 10, and creator_segment to "美妆" to filter the local SQLite database)

_(Also understands technical prompt variations:)_

  • "Bootstrap this workspace with install_browser: true after I have installed the CLI."
  • "Crawl this seed profile with a depth of 2 and write outputs into output/."
  • "Export this week's report and return the generated artifacts."

Environment Setup

Windows (WSL2)

On Windows, red-crawler runs inside WSL2. You need:

  1. WSL2 with Ubuntu (20.04 or 22.04 recommended)
  2. WSLg (built-in graphics support for WSL2) - for browser GUI
  3. Dependencies:
   sudo apt-get update
   sudo apt-get install -y git python3 python3-pip
  1. red-crawler CLI, installed from the published package.

Known Issues & Fixes:

  1. DISPLAY not set (WSLg)

- Error: Missing X server or $DISPLAY - Fix: Export DISPLAY before running:

     export DISPLAY=:0
  1. Headless vs Headed browser

- login command requires headed browser (GUI) - crawl-seed and other commands also require headed browser on WSL - Always set DISPLAY=:0 before running any command with browser

Linux (Native)

  1. Dependencies:
   sudo apt-get update
   sudo apt-get install -y git python3 python3-pip
  1. red-crawler CLI, installed from the published package.
  2. X Server (for headed browser):
   sudo apt-get install -y xvfb
   export DISPLAY=:99
   Xvfb :99 -screen 0 1024x768x16 &

macOS

  1. red-crawler CLI:
   uv tool install red-crawler==0.1.3
  1. Playwright browser runtime: run bootstrap with install_browser: true.

Prerequisites

  • This skill never clones a repository. Install red-crawler as a package, then point workspace_path at a local working directory.
  • Set require_local_checkout: true only when you intentionally want to run from a source checkout.
  • uv is only required when sync_dependencies: true is used for a local source checkout.
  • bootstrap does not create a login session. Use login explicitly.
  • login creates an optional Playwright storage state explicitly.
  • crawl_seed, crawl_homefeed, and collect_nightly can run without a storage state file.
  • report_weekly and list_contactable run from the database and do not require storage state.
  • The workspace must contain pyproject.toml.

Safety Limits

  • Do not point this skill at a directory you do not control.
  • Do not create login sessions silently; call login only when the user asks to authenticate.
  • Keep the Playwright storage state file local and out of commits, logs, and shared artifacts.
  • Do not point it at production data or unknown databases.
  • Do not create or require state.json unless the user explicitly asks to authenticate.
  • Do not hard-code machine-specific paths in prompts or config.
  • Prefer relative, workspace-scoped paths for outputs and reports.

Input Shape

Provide an object with action plus optional fields used by the selected action. Common fields include:

  • workspace_path
  • require_local_checkout
  • runner_command
  • storage_state
  • db_path
  • report_dir
  • output_dir
  • cache_dir
  • heartbeat_dir
  • job_log_dir
  • run_mode (sync/background)
  • job_id
  • event_id
  • tail_lines

Action-specific fields include:

  • sync_dependencies
  • install_browser
  • seed_url
  • login_url
  • max_accounts
  • max_depth
  • include_note_recommendations
  • safe_mode
  • cache_ttl_days
  • gender_filter (male/female or /)
  • crawl_budget
  • search_term_limit
  • startup_jitter_minutes
  • slot_name
  • days
  • lead_type
  • creator_segment
  • min_relevance_score
  • limit
  • format
  • browser_mode
  • browser_endpoint
  • browser_auth
  • proxy
  • proxy_list
  • rotation_mode (none/session)
  • rotation_retries
  • randomize_headers

Output Shape

Successful runs return:

  • status
  • action
  • command
  • summary
  • artifacts
  • metrics
  • next_step
  • stdout
  • stderr
  • job_id and pid when run_mode: background accepts a job
  • job for job status actions

Error runs return:

  • status
  • action
  • error_type
  • message
  • suggested_fix
  • action, command, stdout, and stderr for execution-time failures
  • Early validation or configuration failures may omit action, command, stdout, and stderr

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

76.3%
按下载量换算736

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills