Pinterest Video Download
- Resolve the pin URL if the user gives a
pin.itshort link. - Open the pin in the browser and inspect page resources to find the HLS playlist (
.m3u8) for the main video. - Prefer the highest available variant from the master playlist.
- Download the video with
ffmpegusing stream copy when possible. - Save the file under
~/.openclaw/workspace/downloads/with a stable name based on the pin id. - Tell the user where the MP4 was saved. If the user asks, send the MP4 back through chat.
Main features
- accepts both full Pinterest pin URLs and
pin.itshort links - downloads the primary video from the current pin
- prefers the highest available playlist variant
- saves a normal MP4 for local use or forwarding
- works well as the first step before making an iPhone Live Photo
Notes
- Use
ffmpeg; install missing dependencies yourself when safe. - Pinterest often serves HLS playlists from
v1.pinimg.com/videos/iht/hls/.... - Verify the saved file with
ffprobeorffmpeg -iwhen needed. - If multiple videos are present on the page, pick the primary video visible in the current pin, not a suggested pin below it.
