Instagram Reel via sssinstagram
Requirements
- Node.js 18+.
playwright-coreinstalled in the runtime.- Chromium-compatible browser binary available via:
BROWSER_EXECUTABLE_PATH(preferred), or- default
/usr/bin/brave-browser.
Environment variables
OPENCLAW_WORKSPACE(optional): workspace root used for output path.REEL_DOWNLOAD_DIR(optional): explicit download directory override.BROWSER_EXECUTABLE_PATH(optional): browser binary path override.
-
Validate input URL.
- Accept only
https://www.instagram.com/reel/...(or/reels/...) links.
- Accept only
-
Run downloader automation script.
- Execute:
node scripts/download_via_sss.mjs "<instagram-url>"
- On success it prints:
MEDIA_PATH=<absolute path>
- Execute:
-
Send the file to user on WhatsApp.
- Use
messageaction=sendwithmediaset toMEDIA_PATH. - Add a small caption like
Done 🐾.
- Use
-
If the site blocks automation.
- Retry once after a short wait.
- If it still fails, report failure cleanly and ask user for another link.
Notes
- Uses
BROWSER_EXECUTABLE_PATHif set, otherwise defaults to/usr/bin/brave-browser. - Saves videos to
REEL_DOWNLOAD_DIRwhen set, else<workspace>/downloads(OPENCLAW_WORKSPACEor current working directory). - Uses Playwright (
playwright-core) in headless mode. - Optional cleanup script:
bash scripts/cleanup_reels.sh 30(minutes to retain, default 30). - For user privacy, do not store links longer than needed for the download run.