agentleFS
dreammisdreammis/social-auto-upload/skills/instagram-upload/SKILL.md

instagram-upload

Skill16k starsChanged 9 days agoMITView on GitHub

使用 sau CLI 在 Instagram 独立网页登录、立即发布 Reels/单图/轮播、核验原作品并移至最近删除。

Files
SKILL.md

Instagram 独立网页发布

调用现有 CLI,不自行实现浏览器上传。使用工程 Patchright Chrome 和独立 Instagram 会话,不使用 Business Suite 的绑定入口。默认可见浏览器,未配置代理时按系统网络直连;需要代理时显式使用 --proxy 或设置 SAU_INSTAGRAM_PROXY。传 --proxy "" 可忽略环境变量并直连。

sau instagram login --account creator
sau instagram check --account creator
sau instagram upload-video --account creator --file videos/demo.mp4 --thumbnail covers/demo.png --title "标题" --desc "正文" --tags 生活,分享 --result .local/instagram-video.json
sau instagram upload-note --account creator --images images/1.jpg images/2.jpg --title "轮播标题" --note "正文" --result .local/instagram-images.json

视频/Reel 可用 --thumbnail 指定 JPG/JPEG/PNG 封面;省略时使用 Instagram 默认封面。指定图片后会检查主预览确实使用该图片,失败则停止提交。封面按当前视频画幅居中裁剪,图片边缘的重要文字应留出安全区域。图文发布不接受此参数。

账号文件保存为 cookies/instagram_creator.json。密码和验证由用户在工程浏览器输入。上传流程会自动跳过首次通知提示、确认 Reels 介绍,没有提示则继续。登录验证仍由用户完成;未知弹窗或提示关闭失败须报告,不能宣称上传成功。

视频支持 MP4/MOV,照片支持 JPG/JPEG/PNG/AVIF/HEIC/HEIF,实际处理取决于平台。多图按输入顺序发布轮播,单图和两图轮播已实测。标题、正文、标签合计最多 2200 字符。当前账号独立网页版的照片/Reels 表单及高级设置没有定时入口,当前 CLI 仅支持立即发布;不能把定时任务转换成立即发布。地点、协作者、AI 标签、替代文字、滤镜、裁剪、声音和评论/点赞设置未接入,沿用页面默认值。

最终结果 published 代表平台确认作品创建,返回作品编号、原作品链接和媒体数。processing 表示已受理且仍在处理,submission_unknown 表示提交后结果未确认;不能当成已发布,也不能直接重发。默认结果位于 .local/instagram-results/,使用 --result 固定记录路径。

sau instagram verify --account creator --post-url "原作品链接" --expected-text "原作品中的准确文字" --result .local/instagram-verify.json
sau instagram delete --account creator --post-url "原作品链接" --expected-text "原作品中的准确文字" --result .local/instagram-delete.json

结果未知但没有链接时,先在同一账号主页按素材、配文和发布时间找原作品,复制链接再运行 verify;未找到不证明失败,不重复上传。链接支持 /p/编号/、/reel/编号/ 和带作者名的形式。核对登录用户、作者、作品编号和正文后才允许删除。删除返回 deleted,作品进入“最近删除”;批量删除和提前永久清空不在范围内。本地素材不会删除。deletion_unknown 须先查询原作品和“最近删除”,不重复提交删除。

完整参数和能力边界以 sau instagram upload-video --help、upload-note --help、verify --help 和 delete --help 为准。失败时根据结果文件中的错误及本地证据分析;不得把账号状态、截图或页面记录提交到 Git。

示例脚本

scripts/examples/ 下的文件是复制用示例,不是运行时依赖。执行前先查看当前 CLI 的 --help,替换账号、素材和正文;这些命令可能创建真实作品。

  • instagram_commands.ps1:PowerShell
  • instagram_commands.sh:Bash
  • instagram_cli_template.py:Python subprocess

Download now (ZIP)

Trending

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Aug 30: 0 new projectsWeek of Sep 6: 0 new projectsWeek of Sep 13: 0 new projectsWeek of Sep 20: 0 new projectsWeek of Sep 27: 0 new projectsWeek of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projects
Aug 2026Sep 2026Oct 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about dreammis/social-auto-upload

The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 21

Talked about on GitHub, YouTube and the web (21 times).

On GitHub · 11

6 more on GitHub

On YouTube · 6

1 more on YouTube

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.