Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Search, analyze, and interact with Xiaohongshu (RedNote/小红书) content via a local MCP server and shell scripts.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
scripts/user-profile.sh
1#!/bin/bash2# 获取小红书用户主页34USER_ID="$1"5XSEC_TOKEN="$2"67if [ -z "$USER_ID" ] || [ -z "$XSEC_TOKEN" ]; then8echo "用法: $0 <user_id> <xsec_token>"9echo ""10echo "user_id 和 xsec_token 可从搜索或推荐结果中获取"11exit 112fi1314SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"15ARGS=$(jq -n --arg uid "$USER_ID" --arg tok "$XSEC_TOKEN" \16'{"user_id":$uid,"xsec_token":$tok}')17"$SCRIPT_DIR/mcp-call.sh" user_profile "$ARGS"18