/ego-skills:pinterest-downloadfrom ego-skills
Searches Pinterest and saves images or MP4s using Ego Lite cookies. Supports related pins, board feeds, and preview thumbnails. Soft-fails when logged out and advises login for better results.
Ships in ego-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
用当前 Ego Lite 会话搜索并保存 Pinterest 图片和 MP4。也支持相关 Pin、画板、以及给模型看的小预览图。
Search and save Pinterest images and MP4s with the Ego Lite session. Related pins, boards, and model-facing thumbnails are included.
On every run, tell the user the login_tip / login_tip_zh from the JSON:
Signing in to Pinterest inside Ego Lite improves results compared with anonymous mode. Logged-in results have real numeric pin ids, related pins, and boards that account can open. Anonymous mode still returns public images, but ids are often e1_… and related or board lookups are weaker.
如果退出码是 2(login_required: true),把 how_to_login / how_to_login_zh 一并给用户,然后停。不要输入密码。详见 references/login.md。
ego-browser nodejs 不转发 shell 参数。下面的命令会把配置写进一个临时模块,再用 ego-browser nodejs -e "await import('file://…')" 执行。
node skills/pinterest-download/scripts/download.mjs --query wallpaper --count 2 --out /tmp/pins
node skills/pinterest-download/scripts/download.mjs search --query wallpaper --count 2 --out /tmp/pins --previews 2
node skills/pinterest-download/scripts/download.mjs related --pin 123456789 --count 4 --out /tmp/pins
node skills/pinterest-download/scripts/download.mjs board --board https://www.pinterest.com/user/board/ --count 4 --out /tmp/pins
node skills/pinterest-download/scripts/download.mjs pin --pin https://www.pinterest.com/pin/123456789/
node skills/pinterest-download/scripts/download.mjs preview --url https://i.pinimg.com/originals/aa/bb/cc/x.jpg
node skills/pinterest-download/scripts/download.mjs download --url https://i.pinimg.com/...jpg --url https://v.pinimg.com/...mp4 --out /tmp/pins
node skills/pinterest-download/scripts/download.mjs search --query "cat video" --media video --count 2 --min-width 720 --out /tmp/pins
| Arg | Default | Notes |
|---|---|---|
| command | search | search related board pin preview download. A bare --query is still search. |
--query | search only | Any language. |
--pin | Numeric id, pinterest.com/pin/…, or pin.it. e1_… is rejected. | |
--board | pinterest.com/<user>/<board>/ or /user/board/. | |
--url | Repeatable. preview and download. MP4 / HLS / cmfv count as video. | |
--count | 10 | 1–100 pins. |
--out | ~/Downloads/pinterest-ego | Absolute path before the browser runs. |
--size | originals | originals falls back to 736x. Also 474x, 236x. |
--min-width | 0 | Pixels. 0 or omit means no floor. Skips pins whose known width is below this. |
--min-height | 0 | Pixels. 0 or omit means no floor. |
--media | image | image skips video pins. video saves MP4. any keeps both but still saves the image unless --media video. |
--previews | 0 | Up to 8 thumbnails, base64 in the JSON, for the model. |
--bookmark | Continue a resource page. | |
--allow-anonymous | off | Logged-out public results. Default is a soft fail. |
--keep | off | Leave the Pinterest tab open. |
分辨率:只设一边就只卡那一边。--min-width 和 --min-height 都设了,就必须两边都已知,并且都大于等于阈值。视频用 video_width / video_height(没有则用封面图尺寸)。缺了被要求的那一边,记入 skipped[],不保存。download --url 是用户指定的文件,不过滤。预览缩略图也不过滤。
Resolution: one flag checks only that side. Both flags require both sides to be known and at least those sizes. Video saves use video_width / video_height when present, otherwise the cover size. A missing required side is listed in skipped[] and not saved. Direct download --url targets are not filtered. Thumbnail previews are not filtered either.
Stdout is one JSON object (Ego 0.6.x also echoes logs on stderr; the CLI copies the summary to stdout). Files plus manifest.json go to --out. Do not commit them.
v1.pinimg.com 和 v.pinimg.com 都在 *.pinimg.com 允许范围内。Node fetch 访问视频 CDN 时经常在拿到 HTTP 状态前就抛 fetch failed。脚本会接着用 HTTP/1.1(IPv4)再试一次,仍然失败才用已登录页面的 page.fetch 把文件存下来。不要在 .mp4 / .m3u8 / .cmfv 上提前返回。
iht 的渐进式 MP4 在 /videos/iht/expMp4/<id>_720w.mp4(ftypisom,带音轨)。/videos/iht/720p/<id>.mp4 会 403。HLS 播单和 _720w.cmfv 会先试 720/540/360/240 的 expMp4,再退回 720/540/360 的 cmfv。mc 的 HLS 仍改写成 /videos/mc/720p/<id>.mp4。
v1.pinimg.com is already allowed (*.pinimg.com). Node fetch often throws fetch failed on the video CDN before any HTTP status. The script retries with HTTP/1.1 over IPv4, then saves through the logged-in page.fetch. Do not return early for .mp4 / .m3u8 / .cmfv.
For iht, the progressive file is /videos/iht/expMp4/<id>_720w.mp4 (ftypisom, audio included). /videos/iht/720p/<id>.mp4 is access-denied. An HLS playlist or _720w.cmfv tries expMp4 at 720/540/360/240, then cmfv at 720/540/360. mc HLS still rewrites to /videos/mc/720p/<id>.mp4.
Exit 0 when at least one image, video, or preview is saved, or a pin lookup returns a record that was not skipped for resolution. Exit 2 when Pinterest is logged out or the pin/board input is unusable. Exit 1 when nothing was saved, including when every pin was skipped for resolution.
| sunkim tool | this CLI |
|---|---|
pinterest_search | search --query --count --media --bookmark --previews |
pinterest_related_pins | related --pin |
pinterest_board_pins | board --board |
pinterest_get_pin | pin --pin |
pinterest_preview_images | preview --url or --previews N |
pinterest_download | download --url and the save step on search/related/board/pin |
Checklist: references/parity-sunkim.md. Personal use only: references/tos-notes.md.
--out. Show the user login_tip even when the run succeeds anonymously with --allow-anonymous.2, show how_to_login and stop.downloads[].path, previews (if any), and count.agents/openai.yaml (opens in a new tab)references/login.md (opens in a new tab)references/parity-sunkim.md (opens in a new tab)references/tos-notes.md (opens in a new tab)scripts/download.mjs (opens in a new tab)scripts/download.sh (opens in a new tab)scripts/lib/ego-deps.mjs (opens in a new tab)scripts/lib/launch.mjs (opens in a new tab)scripts/lib/media-fetch.mjs (opens in a new tab)scripts/lib/pure.mjs (opens in a new tab)scripts/lib/run.mjs (opens in a new tab)scripts/test/launch.test.mjs (opens in a new tab)scripts/test/media-fetch.test.mjs (opens in a new tab)scripts/test/pure.test.mjs (opens in a new tab)scripts/test/run.test.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub terryso/ego-skills --plugin ego-skills14 skills in this plugin
/bilibili-videoPublish a local video to the Bilibili creator platform (member.bilibili.com) with Ego Lite via ego-browser. Login-check first. Bilibili wants TWO covers uploaded separately: --cover-4x3 (首页推荐) and --cover-16x9 (个人空间). Nothing is submitted without --yes: that run only prints a local plan and exits 3. --type selects a partition from the human-type list and reads it back; a missing name stops before 立即投稿. Success is 投稿成功 / 审核中, with a BV URL or identity unconfirmed. Bilibili has no private visibility on web upload: approved submissions go public. Use when the user asks to post to B站, 哔哩哔哩, B站投稿, or publish a video to bilibili./chatgpt-image-genExpand a rough image idea with the six-axis domain engine from codex-imagegen, then create one image on the free ChatGPT website inside Ego Lite. Login-check first. Soft-fail with exit 2 when ego-browser is missing, chatgpt.com is logged out, or login cannot be proven. enrich and generate without --yes are offline. --yes sends one prompt and saves the image to --out. Flowcharts and timelines are SVG, not images. Does not call codex exec and does not use an API key. Use when the user asks to generate an image, enrich a prompt, or use ChatGPT Images without a Codex subscription./douyin-videoPublish a local video to the Douyin creator center (creator.douyin.com) with Ego Lite via ego-browser. Login-check first. Title is a separate field of at most 30 characters. Success is a redirect to content management or a publish-success message. The caller supplies a local video file. This skill does not download video. Use when the user asks to post to 抖音, 抖音发视频, 发布到抖音创作者中心, or creator.douyin.com./instagram-saved-downloadDownload the user's own Instagram Saved posts (images, and MP4 when asked) with Ego Lite cookies via ego-browser. Soft-fails if Instagram is logged out and tells the user that signing in is what makes Saved readable. Personal archive only. Each run checks login itself./kuaishou-videoPublish a local video to the Kuaishou creator platform (cp.kuaishou.com) with Ego Lite via ego-browser. Login-check first. Success means the work shows 审核中. Optional comment from the creator comment manager. The caller supplies a local video file and a description. This skill does not download video. Use when the user asks to post to 快手, 快手发视频, 发布到快手创作者平台, or comment on a Kuaishou work from the creator backend./teambition-egoRead and update Teambition test plans and single test cases through the Ego Lite browser session (www.teambition.com). Login-check first. Phase 2a writes are create, update title/precondition/steps, set-status, and archive (delete --yes). Use when the user mentions Teambition 测试用例, 用例库, 测试计划, testplan, or case steps. Do not use teambition_cli, an Open API token, or the task search API for this module.
Other plugins' skills for the same job