Skip to content

feat(instagram): add media download command#623

Merged
jackwener merged 3 commits intojackwener:mainfrom
fii6:feat/instagram-download-openclaw-skill
Mar 31, 2026
Merged

feat(instagram): add media download command#623
jackwener merged 3 commits intojackwener:mainfrom
fii6:feat/instagram-download-openclaw-skill

Conversation

@fii6
Copy link
Copy Markdown
Contributor

@fii6 fii6 commented Mar 30, 2026

Summary

  • add an instagram dl command to download media from /p/, /reel/, and /tv/ links using the active browser session
  • fetch Instagram media metadata inside the logged-in browser context, then download the resolved image/video URLs locally
  • default downloads to /sdcard/Pictures/Instagram, support --path to override the destination
  • keep command output minimal: no result table, no progress spam, only 📁 saved: ... after completion
  • place the new command after saved in Instagram help output and keep the command description in English

Validation

  • npm run build
  • vitest run src/clis/instagram/download.test.ts --pool=threads --maxWorkers=1
  • real download test via CDP-backed browser session:
    • opencli instagram dl "https://www.instagram.com/p/DWUR_azCWbN/" --path ~/tmp/instagram-dl-alias-test

@jackwener jackwener force-pushed the feat/instagram-download-openclaw-skill branch from 1661f27 to 9623b84 Compare March 31, 2026 04:54
@jackwener jackwener merged commit 1858eac into jackwener:main Mar 31, 2026
@jackwener
Copy link
Copy Markdown
Owner

Merged after review. I specifically looked at the design intent here: the new Instagram media command should fit the existing OpenCLI command model instead of introducing a one-off UX path. I renamed it to the repository-wide download convention, removed the global ordering change, switched the default output directory to a cross-platform Downloads path, and validated with targeted Vitest, commanderAdapter/build-manifest coverage, typecheck, and build before merge. Thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants