返回顶部
s

social-video-downloader

Download videos from Instagram Reels, TikTok, YouTube Shorts, Twitter/X clips,

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0
安全检测
已通过
87
下载量
0
收藏
概述
安装方式
版本历史

social-video-downloader

# Social Video Downloader Download social media videos via yt-dlp and send them to the user. ## Requirements - `yt-dlp` must be installed - `ffmpeg` recommended for best format support ## Setup See [SETUP.md](SETUP.md) for installation and configuration. ## Workflow 1. Verify download intent is clear from the user's message 2. Run the download script: ```bash python3 scripts/download.py "<url>" /tmp ``` 3. On `SUCCESS:<path>`, send file to user via the message tool 4. On `ERROR:...`, report failure to user 5. After sending, delete the temp file with `rm <path>` ## Sending the File Use the `message` tool with `action=send`, `media=<path>`, and `buttons=[]`. If file exceeds Telegram's 50MB limit, inform the user and provide the file path instead. ## Supported Platforms Instagram (Reels, Posts), TikTok, YouTube Shorts, Twitter/X, Reddit, Facebook, Vimeo, Dailymotion, Twitch, Bilibili, and more. ## Security The script includes these protections: - **URL allowlist** — only pre-approved domains can be downloaded from - **SSRF protection** — blocks URLs resolving to private/internal IP ranges - **Command injection protection** — URLs are validated against shell metacharacters, and `--` separator prevents option injection - **Subprocess isolation** — URLs passed as separate arguments, never interpolated into shell strings ## Safety Guards - **No playlists** — `--no-playlist` prevents accidentally downloading hundreds of files - **Metadata check** — verifies video info before downloading - **Retry limit** — `--retries 2` stops after failures to avoid bans - **Timeout** — `--socket-timeout 30` bails on stalled connections - **Timestamp filenames** — `social_dl_<timestamp>.mp4` prevents filename collisions

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 social-video-downloader-1775946130 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 social-video-downloader-1775946130 技能

通过命令行安装

skillhub install social-video-downloader-1775946130

下载 Zip 包

⬇ 下载 social-video-downloader v1.2.0

文件大小: 4.19 KB | 发布时间: 2026-4-12 11:28

v1.2.0 最新 2026-4-12 11:28
Security fix: rewritten in Python with URL allowlist, SSRF protection (blocks private IPs), and command injection protection (shell metacharacter validation, subprocess isolation). Removed bash script.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部