Install
openclaw skills install xingtutaskauthorQuery and export the registered influencer list of a XingTu task by task ID, including detailed author info like nickname, ID, level, fans, pricing, city, We...
openclaw skills install xingtutaskauthorFetch the complete list of registered authors/influencers for a XingTu (星图) recruitment task and export to a well-formatted Excel file.
If the user has already provided a XingTu task ID in their message, use it directly. Otherwise, ask the user to provide the task ID.
The task ID is a long numeric string (e.g., 7642279680695484426). If the user provides a URL or screenshot, extract the ID from it.
The cookie file is stored at ~/.xingtuCookie.txt. Use os.path.expanduser("~") to resolve the home directory on any OS.
If the file exists:
python "<skill-base>/scripts/fetch_xingtu_authors.py" --task-id "<task_id>" --cookie "<cookie>" --validate
[OK]), the cookie is valid. Proceed to Step 4.[FAIL]), the cookie is invalid. Go to Step 3 with the message: "星图后台登录失效"If the file does NOT exist:
When the cookie is missing or invalid:
First, check if the user's current message contains a cookie string. If yes:
--validate command from Step 2.~/.xingtuCookie.txt and proceed to Step 4.Tell the user the login is required. Use the appropriate message:
Open the login page in the built-in browser:
https://sso.oceanengine.com/xingtu/login?role=7
Use the agent-browser skill or preview_url tool to open this URL.
Instruct the user:
When the user provides the cookie string:
~/.xingtuCookie.txt--validate commandRun the fetch script to get all authors across all pages:
python "<skill-base>/scripts/fetch_xingtu_authors.py" --task-id "<task_id>" --cookie "<cookie>"
The script will:
has_more is false)task_id, total_authors, and output pathThe default output path is: xingtu_authors_<task_id>_<timestamp>.xlsx in the current working directory.
Optional: Use --output <path> to specify a custom output path.
After the script completes successfully:
deliver_attachments to deliver the Excel fileopen_result_view to open the Excel file for the userAppend a note to the daily memory file recording:
| Column | Source Field |
|---|---|
| 序号 | Auto-increment |
| 达人昵称 | author_base_info.nick_name |
| 作者ID | author_base_info.author_id |
| 达人等级 | author_base_info.ecom_author_level |
| 粉丝数 | author_base_info.follower |
| 主推类目(30天) | author_base_info.all_ecom_top3_category_30d_desc (joined) |
| 带货GMV(30天) | author_base_info.all_ecom_gmv_30d_desc |
| 视频GMV(30天) | author_base_info.ecom_video_gmv_30d_desc |
| 1-20s报价 | recruit_author_order_info.recruit_cpt_info.author_price |
| 21-60s报价 | author_base_info.price_21_60 |
| 60s+报价 | author_base_info.price_60 |
| 预期CPM | author_base_info.prospective_cpm |
| 预期播放量 | author_base_info.expected_play_num |
| 完播率 | author_base_info.author_recruit_video_cpt_fulfillment_rate_desc |
| 所在城市 | author_base_info.author_resident_city |
| 内容标签 | author_base_info.content_tags (joined) |
| 微信号 | author_base_info.wechat |
| 报名状态 | recruit_author_order_info.enroll_status (mapped) |
| 报名时间 | recruit_author_order_info.time_info.enroll_time (timestamp to datetime) |
| 推荐理由 | recruit_author_order_info.recommend_reason (formatted) |
| 合作优势 | recruit_author_order_info.coop_advantage |
| 创作思路 | recruit_author_order_info.creation_idea |
| 补充说明 | recruit_author_order_info.extra_note |
POST https://www.xingtu.cn/gw/api/challenge/provider_get_task_author_listhttps://sso.oceanengine.com/xingtu/login?role=7)page (int, starts at 1), response field pagination.has_more (bool)Accept, Content-Type, agw-js-conv: str, Cookie, User-Agent, Hoststatus_code, report the error and suggest re-logintotal_count is 0, inform the user that no authors have registered for this taskpip install openpyxl requests